SHARE
TWEET

Untitled

a guest May 20th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # make sure that your dns has a cname set for wiki
  2.  
  3. server {
  4.     listen 443 ssl;
  5.     listen [::]:443 ssl;
  6.  
  7.     server_name wiki.*;
  8.  
  9.     add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive";
  10.     include /config/nginx/ssl.conf;
  11.  
  12.     client_max_body_size 0;
  13.  
  14.     # enable for ldap auth, fill in ldap details in ldap.conf
  15.     #include /config/nginx/ldap.conf;
  16.  
  17.     location / {
  18.         # enable the next two lines for http auth
  19.         #auth_basic "Restricted";
  20.         #auth_basic_user_file /config/nginx/.htpasswd;
  21.  
  22.         # enable the next two lines for ldap auth
  23.         #auth_request /auth;
  24.         #error_page 401 =200 /login;
  25.  
  26.         include /config/nginx/proxy.conf;
  27.         resolver 127.0.0.11 valid=30s;
  28.         set $upstream_wiki wiki;
  29.         proxy_pass https://$upstream_wiki:443;
  30.     }
  31. }
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