SHARE
TWEET

Untitled

a guest Jan 13th, 2020 99 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2.         listen 80;
  3.         server_name <test_domain>;
  4.  
  5.         send_timeout 100m;
  6.  
  7.         resolver 8.8.4.4 8.8.8.8 valid=300s;
  8.         resolver_timeout 10s;
  9.  
  10.         add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always;
  11.         add_header test true always;
  12.  
  13.         gzip on;
  14.         gzip_vary on;
  15.         gzip_min_length 1000;
  16.         gzip_proxied any;
  17.         gzip_types text/plain text/css text/xml application/xml text/javascript application/x-javascript image/svg+xml;
  18.         gzip_disable "MSIE [1-6]\.";
  19.  
  20.         client_max_body_size 100M;
  21.  
  22.         proxy_set_header Host $host;
  23.         proxy_set_header X-Real-IP $remote_addr;
  24.         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  25.         proxy_set_header X-Forwarded-Proto $scheme;
  26.         proxy_set_header Sec-WebSocket-Extensions $http_sec_websocket_extensions;
  27.         proxy_set_header Sec-WebSocket-Key $http_sec_websocket_key;
  28.         proxy_set_header Sec-WebSocket-Version $http_sec_websocket_version;
  29.  
  30.         #Websockets
  31.         proxy_http_version 1.1;
  32.         proxy_set_header Upgrade $http_upgrade;
  33.         proxy_set_header Connection "Upgrade";
  34.  
  35.         proxy_redirect off;
  36.         proxy_buffering off;
  37.  
  38.  
  39.         location / {
  40.                 proxy_pass http://home.hinome.net:80;
  41.         }
  42.  
  43.         access_log /var/log/nginx/test.log up_head;
  44. #        error_log /opt/var/log/nginx/plex.mydomain.com.error.log;
  45.  
  46. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top