Advertisement
neversmile

Untitled

Oct 28th, 2014
3,238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2.     listen 80 default_server;
  3.     listen [::]:80 default_server ipv6only=on;
  4.  
  5.     server_name 1337.vn; # Replace with your domain
  6.  
  7.     root /usr/share/nginx/html;
  8.     index index.html index.htm;
  9.  
  10.     client_max_body_size 10G;
  11.  
  12.     location / {
  13.         proxy_pass http://localhost:2368;
  14.         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  15.         proxy_set_header Host $http_host;
  16.         proxy_set_header X-Forwarded-Proto $scheme;
  17.         proxy_buffering off;
  18.     }
  19. }
  20. # HTTPS Server
  21.  
  22. server {  
  23.     listen 443 ssl;
  24.     server_name 1337.vn;
  25.  
  26.     client_max_body_size 10M;
  27.  
  28.     location / {
  29.             proxy_pass http://localhost:2368/;
  30.             proxy_set_header Host $host;
  31.             proxy_buffering off;
  32.     }
  33.  
  34.     ssl on;
  35.     ssl_certificate /etc/nginx/conf/ssl-unified.crt;
  36.     ssl_certificate_key /etc/nginx/conf/ssl.key;
  37.  
  38.     ssl_session_timeout 5m;
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement