SHARE
TWEET

Untitled

a guest Sep 15th, 2019 87 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ## Version 2019/08/01 - Changelog: https://github.com/linuxserver/docker-letsencrypt/commits/master/root/defaults/default
  2.  
  3. # redirect all traffic to https
  4. server {
  5.     listen 80;
  6.     listen [::]:80;
  7.     server_name _;
  8.     return 301 https://$host$request_uri;
  9. }
  10.  
  11. # main server block
  12. server {
  13.     listen 443 ssl http2 default_server;
  14.     listen [::]:443 ssl http2 default_server;
  15.  
  16.     root /config/www/domain1/wordpress;
  17.     index index.html index.htm index.php;
  18.  
  19.     server_name www.domain1.media;
  20.  
  21.     # enable subfolder method reverse proxy confs
  22.     include /config/nginx/proxy-confs/*.subfolder.conf;
  23.  
  24.     # all ssl related config moved to ssl.conf
  25.     include /config/nginx/ssl.conf;
  26.  
  27.     # enable for ldap auth
  28.     #include /config/nginx/ldap.conf;
  29.  
  30.     client_max_body_size 0;
  31.  
  32.     location / {
  33.         try_files $uri $uri/ /index.html /index.php?$args =404;
  34.     }
  35.  
  36.     location ~ \.php$ {
  37.         fastcgi_split_path_info ^(.+\.php)(/.+)$;
  38.         fastcgi_pass 127.0.0.1:9000;
  39.         fastcgi_index index.php;
  40.         include /etc/nginx/fastcgi_params;
  41.     }
  42. }
  43.  
  44. server {
  45.     listen 443 ssl http2;
  46.     listen [::]:443 ssl http2;
  47.    
  48.     server_name www.domain2.com;
  49.     index index.html index.htm index.php;
  50.    
  51.     root /config/www/domain2/wordpress;
  52.    
  53.     # all ssl related config moved to ssl.conf
  54.     include /config/nginx/ssl.conf;
  55.  
  56.     client_max_body_size 0;
  57.  
  58.     location / {
  59.         try_files $uri $uri/ /index.html /index.php?$args =404;
  60.     }
  61.  
  62.     location ~ \.php$ {
  63.         fastcgi_split_path_info ^(.+\.php)(/.+)$;
  64.         fastcgi_pass 127.0.0.1:9000;
  65.         fastcgi_index index.php;
  66.         include /etc/nginx/fastcgi_params;
  67.     }
  68. }
  69.  
  70. # enable subdomain method reverse proxy confs
  71. include /config/nginx/proxy-confs/*.subdomain.conf;
  72. # enable proxy cache for auth
  73. proxy_cache_path cache/ keys_zone=auth_cache:10m;
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