Guest User

Untitled

a guest
Jan 2nd, 2018
1,951
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.29 KB | None | 0 0
  1. server {
  2. listen 80;
  3. listen [::]:80;
  4.  
  5. server_name mydomain.be www.mydomain.be 192.168.0.30;
  6.  
  7. gzip on;
  8. gzip_vary on;
  9. gzip_min_length 1000;
  10. gzip_proxied any;
  11. gzip_types text/plain text/html text/css text/xml application/xml text/javascript application/x-javascript image/svg+xml;
  12. gzip_disable "MSIE [1-6]\.";
  13.  
  14. proxy_set_header Host $host;
  15. proxy_set_header X-Real-IP $remote_addr;
  16. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  17. proxy_set_header X-Forwarded-Proto $scheme;
  18.  
  19. proxy_http_version 1.1;
  20. proxy_set_header Upgrade $http_upgrade;
  21. proxy_set_header Connection "upgrade";
  22.  
  23. location / {
  24. proxy_pass https://localhost:5001;
  25. }
  26.  
  27. location /sonarr {
  28. proxy_pass http://localhost:8989;
  29. }
  30.  
  31. location /radarr{
  32. proxy_pass http://localhost:7878;
  33. }
  34.  
  35. location /web/ {
  36. proxy_buffering off;
  37. proxy_pass http://localhost:32400/web/;
  38. }
  39.  
  40. location /plex {
  41. proxy_pass http://localhost/web;
  42. }
  43. }
  44.  
  45. server {
  46. listen 443 ssl http2;
  47. listen [::]:443 ssl http2;
  48.  
  49. server_name mydomain.be www.mydomain.be 192.168.0.30;
  50.  
  51. ssl_certificate /usr/syno/etc/certificate/ReverseProxy/fullchain.pem;
  52.  
  53. ssl_certificate_key /usr/syno/etc/certificate/ReverseProxy/privkey.pem;
  54.  
  55. add_header Strict-Transport-Security "max-age=15768000; includeSubdomains; preload" always;
  56.  
  57. gzip on;
  58. gzip_vary on;
  59. gzip_min_length 1000;
  60. gzip_proxied any;
  61. gzip_types text/plain text/html text/css text/xml application/xml text/javascript application/x-javascript image/svg+xml;
  62. gzip_disable "MSIE [1-6]\.";
  63.  
  64. proxy_set_header Host $host;
  65. proxy_set_header X-Real-IP $remote_addr;
  66. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  67. proxy_set_header X-Forwarded-Proto $scheme;
  68.  
  69. proxy_http_version 1.1;
  70. proxy_set_header Upgrade $http_upgrade;
  71. proxy_set_header Connection "upgrade";
  72.  
  73. location / {
  74. proxy_pass https://localhost:5001;
  75. }
  76.  
  77. location /sonarr {
  78. proxy_pass http://localhost:8989;
  79. }
  80.  
  81. location /radarr{
  82. proxy_pass http://localhost:7878;
  83. }
  84.  
  85. location /web/ {
  86. proxy_buffering off;
  87. proxy_pass http://localhost:32400/web/;
  88. }
  89.  
  90. location /plex {
  91. proxy_pass http://localhost/web;
  92. }
  93. }
Advertisement
Add Comment
Please, Sign In to add comment