Created
September 16, 2017 00:53
-
-
Save ironicbadger/45bea276a43bc67aa78d04ddd6523f4f to your computer and use it in GitHub Desktop.
/opt/appdata/letsencrypt/nginx/site-confs/default
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# listening on port 80 disabled by default, remove the "#" signs to enable | |
# redirect all traffic to https | |
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
server_name _; | |
return 301 https://$host$request_uri; | |
} | |
# main server block | |
server { | |
listen 443 ssl default_server; | |
#root /config/www; | |
#index index.html index.htm index.php; | |
server_name _; | |
ssl_certificate /config/keys/letsencrypt/fullchain.pem; | |
ssl_certificate_key /config/keys/letsencrypt/privkey.pem; | |
ssl_dhparam /config/nginx/dhparams.pem; | |
ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:E CDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA2 56:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES 128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:E CDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES 128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DS S-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA25 6:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!E XPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KR B5-DES-CBC3-SHA'; | |
ssl_prefer_server_ciphers on; | |
client_max_body_size 0; | |
location / { | |
try_files $uri $uri/ /index.html /index.php?$args =404; | |
} | |
location ~ \.php$ { | |
fastcgi_split_path_info ^(.+\.php)(/.+)$; | |
# With php7-cgi alone: | |
fastcgi_pass 127.0.0.1:9000; | |
# With php7-fpm: | |
#fastcgi_pass unix:/var/run/php7-fpm.sock; | |
fastcgi_index index.php; | |
include /etc/nginx/fastcgi_params; | |
} | |
location /sonic { | |
proxy_pass http://192.168.1.2:4040/sonic; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
} | |
location /smokeping { | |
proxy_pass http://192.168.1.2:27025; | |
include /config/nginx/proxy.conf; | |
} | |
location /plexpy { | |
proxy_pass http://192.168.1.2:27029; | |
proxy_bind $server_addr; | |
proxy_set_header X-Forwarded-Host $server_name; | |
proxy_set_header X-Forwarded-Ssl on; | |
include /config/nginx/proxy.conf; | |
} | |
location /nzbget { | |
proxy_pass http://192.168.1.2:27020; | |
include /config/nginx/proxy.conf; | |
} | |
location /sonarr { | |
proxy_pass http://192.168.1.2:27021/sonarr; | |
include /config/nginx/proxy.conf; | |
} | |
location /couch { | |
proxy_pass http://192.168.1.2:27022/couch; | |
include /config/nginx/proxy.conf; | |
} | |
location /radarr { | |
proxy_pass http://192.168.1.2:7878/radarr; | |
include /config/nginx/proxy.conf; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment