Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 443 ssl http2;
- listen [::]:443 ssl http2;
- ssl_certificate ./ssl/fullchain.cer;
- ssl_certificate_key ./ssl/cert.key;
- server_name xteve.mydomain.com;
- location / {
- proxy_pass http://192.168.1.2:34400/web/;
- proxy_cookie_path / /xteve/;
- proxy_redirect / /xteve/;
- rewrite ^/xteve(.*) $1 break;
- proxy_set_header Accept-Encoding "";
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection $http_connection;
- sub_filter_types application/javascript;
- sub_filter 'window.location.port + "/data/"' 'window.location.port + "/xteve/data/"';
- sub_filter_once on;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment