Advertisement
MaxSMoke

config-new

Mar 16th, 2024 (edited)
454
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.99 KB | None | 0 0
  1. server {
  2.         listen       80;
  3.         server_name  domain.com;
  4.         charset utf-8;
  5.         return 301 https://domain.com;
  6.  
  7. }
  8.  
  9.     # HTTPS
  10.    
  11. server {
  12.     listen       443 ssl;
  13.     server_name  domain.com;
  14.     ssl_certificate      /etc/letsencrypt/live/domain.com/fullchain.pem;
  15.     ssl_certificate_key  /etc/letsencrypt/live/domain.com/privkey.pem;
  16.     ssl_session_cache    shared:SSL:1m;
  17.     ssl_session_timeout  5m;
  18.     ssl_ciphers  HIGH:!aNULL:!MD5;
  19.     ssl_prefer_server_ciphers  on;
  20.  
  21.     location /ss14/sandbox/ {
  22.         client_max_body_size 512M;
  23.         proxy_set_header Host $host;
  24.         proxy_set_header X-Real-IP $remote_addr;
  25.         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  26.         #proxy_set_header X-Forwarded-Proto $proxy_x_forwarded_proto;
  27.         proxy_set_header X-Forwarded-Proto $scheme;
  28.         proxy_set_header Upgrade $http_upgrade;
  29.         proxy_cache_bypass $http_upgrade;
  30.         proxy_pass http://127.0.0.1:1212/;
  31.     }
  32.  
  33. }
  34.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement