MKANET

Untitled

Dec 16th, 2021
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. server {
  2. listen 443 ssl http2;
  3. listen [::]:443 ssl http2;
  4. ssl_certificate ./ssl/fullchain.cer;
  5. ssl_certificate_key ./ssl/cert.key;
  6. server_name xteve.mydomain.com;
  7. location / {
  8. proxy_pass http://192.168.1.2:34400/web/;
  9. proxy_cookie_path / /xteve/;
  10. proxy_redirect / /xteve/;
  11. rewrite ^/xteve(.*) $1 break;
  12. proxy_set_header Accept-Encoding "";
  13. proxy_http_version 1.1;
  14. proxy_set_header Upgrade $http_upgrade;
  15. proxy_set_header Connection $http_connection;
  16. sub_filter_types application/javascript;
  17. sub_filter 'window.location.port + "/data/"' 'window.location.port + "/xteve/data/"';
  18. sub_filter_once on;
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment