123456789101112131415161718192021222324252627282930313233343536373839 |
- server {
- listen 80;
- listen [::]:80;
-
- server_name emby.ataber.pw;
- return 301 https://$host$request_uri;
- }
-
- server {
- listen 443 ssl http2;
- listen [::]:443 ssl http2;
-
- ssl_certificate /etc/letsencrypt/live/ataber.pw/fullchain.pem;
- ssl_certificate_key /etc/letsencrypt/live/ataber.pw/privkey.pem;
- ssl_trusted_certificate /etc/letsencrypt/live/ataber.pw/chain.pem;
- ssl_dhparam /etc/ssl/private/dhparam.pem;
-
- add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
- add_header X-Xss-Protection "1; mode=block" always;
- add_header X-Content-Type-Options "nosniff" always;
- add_header X-Frame-Options "SAMEORIGIN" always;
- proxy_hide_header X-Powered-By;
- add_header 'Referrer-Policy' 'no-referrer';
- add_header Content-Security-Policy "frame-ancestors ataber.pw emby.ataber.pw;";
-
- server_name emby.ataber.pw;
-
- location / {
- proxy_pass http://localhost:8096;
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection 'upgrade';
- proxy_set_header Host $host;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header If-Range $http_if_range;
- proxy_set_header Range $http_range;
- }
- }
|