SHOW:
|
|
- or go back to the newest paste.
1 | ## Version 2018/12/05 - Changelog: https://github.com/linuxserver/docker-letsencrypt/commits/master/root/defaults/default | |
2 | ||
3 | # listening on port 80 disabled by default, remove the "#" signs to enable | |
4 | # redirect all traffic to https | |
5 | server { | |
6 | listen 80; | |
7 | listen [::]:80; | |
8 | server_name _; | |
9 | return 301 https://$host$request_uri; | |
10 | } | |
11 | ||
12 | # main server block | |
13 | server { | |
14 | listen 443 ssl http2 default_server; | |
15 | - | listen [::]:443 ssl http2 default_server; |
15 | + | listen [::]:443 ssl http2; |
16 | ||
17 | root /config/www; | |
18 | index index.html index.htm index.php; | |
19 | ||
20 | server_name _; | |
21 | ||
22 | # enable subfolder method reverse proxy confs | |
23 | include /config/nginx/proxy-confs/*.subfolder.conf; | |
24 | ||
25 | # all ssl related config moved to ssl.conf | |
26 | include /config/nginx/ssl.conf; | |
27 | ||
28 | # enable for ldap auth | |
29 | #include /config/nginx/ldap.conf; | |
30 | ||
31 | client_max_body_size 0; | |
32 | ||
33 | location / { | |
34 | try_files $uri $uri/ /index.html /index.php?$args =404; | |
35 | } | |
36 | ||
37 | location ~ \.php$ { | |
38 | fastcgi_split_path_info ^(.+\.php)(/.+)$; | |
39 | fastcgi_pass 127.0.0.1:9000; | |
40 | fastcgi_index index.php; | |
41 | include /etc/nginx/fastcgi_params; | |
42 | } | |
43 | ||
44 | - | # sample reverse proxy config for password protected couchpotato running at IP 192.168.1.50 port 5050 with base url "cp" |
44 | + | |
45 | - | # notice this is within the same server block as the base |
45 | + | } |