diff --git a/nginx/nginx/nginx.conf b/nginx/nginx/nginx.conf index 827625e..5aaf114 100644 --- a/nginx/nginx/nginx.conf +++ b/nginx/nginx/nginx.conf @@ -156,6 +156,9 @@ server { # # ############################################################################################# +############################################################################################# +# Wordpress # +############################################################################################# server { include "/config/nginx/conf_split/listen443.conf"; server_name example.com www.example.com; @@ -178,7 +181,7 @@ server { proxy_set_header X-Forwarded-Proto $scheme; # 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; @@ -186,6 +189,8 @@ server { } +############################################################################################# +# HTML # ############################################################################################# 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 #