Advertisement
neversmile

Untitled

Oct 17th, 2014
3,375
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nagios 0.91 KB | None | 0 0
  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. server {  
  22.     listen 443 ssl;
  23.     server_name 1337.vn;
  24.  
  25.     client_max_body_size 10M;
  26.  
  27.     location / {
  28.             proxy_pass http://localhost:2368/;
  29.             proxy_set_header Host $host;
  30.             proxy_buffering off;
  31.     }
  32.  
  33.     ssl on;
  34.     ssl_certificate /etc/nginx/conf/ssl-unified.crt;
  35.     ssl_certificate_key /etc/nginx/conf/ssl.key;
  36.  
  37.     ssl_session_timeout 5m;
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement