Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- listen [::]:80;
- server_name mydomain.be www.mydomain.be 192.168.0.30;
- gzip on;
- gzip_vary on;
- gzip_min_length 1000;
- gzip_proxied any;
- gzip_types text/plain text/html text/css text/xml application/xml text/javascript application/x-javascript image/svg+xml;
- gzip_disable "MSIE [1-6]\.";
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Forwarded-Proto $scheme;
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- location / {
- proxy_pass https://localhost:5001;
- }
- location /sonarr {
- proxy_pass http://localhost:8989;
- }
- location /radarr{
- proxy_pass http://localhost:7878;
- }
- location /web/ {
- proxy_buffering off;
- proxy_pass http://localhost:32400/web/;
- }
- location /plex {
- proxy_pass http://localhost/web;
- }
- }
- server {
- listen 443 ssl http2;
- listen [::]:443 ssl http2;
- server_name mydomain.be www.mydomain.be 192.168.0.30;
- ssl_certificate /usr/syno/etc/certificate/ReverseProxy/fullchain.pem;
- ssl_certificate_key /usr/syno/etc/certificate/ReverseProxy/privkey.pem;
- add_header Strict-Transport-Security "max-age=15768000; includeSubdomains; preload" always;
- gzip on;
- gzip_vary on;
- gzip_min_length 1000;
- gzip_proxied any;
- gzip_types text/plain text/html text/css text/xml application/xml text/javascript application/x-javascript image/svg+xml;
- gzip_disable "MSIE [1-6]\.";
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Forwarded-Proto $scheme;
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- location / {
- proxy_pass https://localhost:5001;
- }
- location /sonarr {
- proxy_pass http://localhost:8989;
- }
- location /radarr{
- proxy_pass http://localhost:7878;
- }
- location /web/ {
- proxy_buffering off;
- proxy_pass http://localhost:32400/web/;
- }
- location /plex {
- proxy_pass http://localhost/web;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment