'nginx/nginx/nginx.conf' updaten

This commit is contained in:
Mathijs Lermer 2020-11-02 16:09:51 +01:00
parent 830cd0dd32
commit 5a467f4189

View file

@ -156,6 +156,9 @@ server {
# # # #
############################################################################################# #############################################################################################
#############################################################################################
# Wordpress #
#############################################################################################
server { server {
include "/config/nginx/conf_split/listen443.conf"; include "/config/nginx/conf_split/listen443.conf";
server_name example.com www.example.com; server_name example.com www.example.com;
@ -178,7 +181,7 @@ server {
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
# Fix the “It appears that your reverse proxy set up is broken" error. # Fix the “It appears that your reverse proxy set up is broken" error.
proxy_pass http://192.168.0.101:8281; proxy_pass http://1.0.0.50:1444;
proxy_read_timeout 90; proxy_read_timeout 90;
@ -186,6 +189,8 @@ server {
} }
#############################################################################################
# HTML #
############################################################################################# #############################################################################################
server { server {
@ -226,6 +231,70 @@ server {
} }
#############################################################################################
# Gitea #
#############################################################################################
server {
include "/config/nginx/conf_split/listen443.conf";
server_name example.com www.example.com;
ssl_certificate /config/letsencrypt/live/example.com/fullchain.pem;
ssl_certificate_key /config/letsencrypt/live/example.com/privkey.pem;
ssl_trusted_certificate /config/letsencrypt/live/example.com/chain.pem;
#include "/config/nginx/conf_split/ssl_dhparam_2048.conf";
include "/config/nginx/conf_split/ssl_dhparam_4096.conf";
include "/config/nginx/conf_split/ssl_protocol.conf";
include "/config/nginx/conf_split/headers.conf";
add_header Content-Security-Policy "default-src 'self'; connect-src *; font-src *; frame-src *; img-src * data:; media-src *; object-src *; script-src * 'unsafe-inline' 'unsafe-eval'; style-src * 'unsafe-inline';";
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# Fix the “It appears that your reverse proxy set up is broken" error.
proxy_pass http://1.0.0.50:1445;
proxy_read_timeout 90;
}
}
#############################################################################################
# Homeassistant #
#############################################################################################
server {
include "/config/nginx/conf_split/listen443.conf";
server_name example.com www.example.com;
ssl_certificate /config/letsencrypt/live/example.com/fullchain.pem;
ssl_certificate_key /config/letsencrypt/live/example.com/privkey.pem;
ssl_trusted_certificate /config/letsencrypt/live/example.com/chain.pem;
#include "/config/nginx/conf_split/ssl_dhparam_2048.conf";
include "/config/nginx/conf_split/ssl_dhparam_4096.conf";
include "/config/nginx/conf_split/ssl_protocol.conf";
include "/config/nginx/conf_split/headers.conf";
add_header Content-Security-Policy "default-src 'self'; connect-src *; font-src *; frame-src *; img-src * data:; media-src *; object-src *; script-src * 'unsafe-inline' 'unsafe-eval'; style-src * 'unsafe-inline';";
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# Fix the “It appears that your reverse proxy set up is broken" error.
proxy_pass http://1.0.0.22:8123;
proxy_read_timeout 90;
}
}
############################################################################################# #############################################################################################
# # # #
# End # # End #