Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80 default_server;
- listen [::]:80 default_server ipv6only=on;
- server_name 1337.vn; # Replace with your domain
- root /usr/share/nginx/html;
- index index.html index.htm;
- client_max_body_size 10G;
- location / {
- proxy_pass http://localhost:2368;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header Host $http_host;
- proxy_set_header X-Forwarded-Proto $scheme;
- proxy_buffering off;
- }
- }
- # HTTPS Server
- server {
- listen 443 ssl;
- server_name 1337.vn;
- client_max_body_size 10M;
- location / {
- proxy_pass http://localhost:2368/;
- proxy_set_header Host $host;
- proxy_buffering off;
- }
- ssl on;
- ssl_certificate /etc/nginx/conf/ssl-unified.crt;
- ssl_certificate_key /etc/nginx/conf/ssl.key;
- ssl_session_timeout 5m;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement