Compare commits

...
Author SHA1 Message Date
LinuxServer-CI 48d3f7a05d Bot Updating Templated Files 2026-10-20 15:36:08 +00:00
Eric Nemchik 37f65cf01a Merge pull request #629 from chpego/fix-doc-proxy
fix READMe PROXY conf directory
2026-10-20 10:34:05 -05:00
Eric Nemchik f15b41b67f Merge branch 'master' into fix-doc-proxy 2026-10-20 10:33:44 -05:00
Eric Nemchik 7a83b73126 Merge pull request #632 from linuxserver/update-host-comments
Update host comments
2026-10-20 10:25:09 -05:00
Eric Nemchik 2807f25ee0 Update Nginx configuration to replace $http_host with $host$is_request_port$request_port for better compatibility
Signed-off-by: GitHub <noreply@github.com>
2026-10-20 14:59:23 +00:00
chpego c21f88d530 Fix directory name in reverse proxy config instructions
Corrected the directory name from 'proxy-confs' to 'proxy_confs' in the README.
2026-10-10 09:14:31 +02:00
chpego 015dd83612 Fix formatting in readme-vars.yml for clarity 2026-10-10 08:26:52 +02:00
chpego 9f6e490904 Merge branch 'linuxserver:master' into master 2026-10-10 08:21:28 +02:00
chpego f19871923e fix READMe PROXY conf directory 2026-06-04 06:10:31 +00:00
4 changed files with 12 additions and 7 deletions

No files matched your search

+1 -1
View File
@@ -96,7 +96,7 @@ It is recommended to attempt obtaining a certificate with `STAGING=true` first t
### Site config and reverse proxy
* The default site config resides at `/config/nginx/site-confs/default.conf`. Feel free to modify this file, and you can add other conf files to this directory. However, if you delete the `default` file, a new default will be created on container start.
* Preset reverse proxy config files are added for popular apps. See the `README.md` file under `/config/nginx/proxy_confs` for instructions on how to enable them. The preset confs reside in and get imported from [this repo](https://github.com/linuxserver/reverse-proxy-confs).
* Preset reverse proxy config files are added for popular apps. See the `README.md` file under `/config/nginx/proxy-confs` for instructions on how to enable them. The preset confs reside in and get imported from [this repo](https://github.com/linuxserver/reverse-proxy-confs).
* If you wish to hide your site from search engine crawlers, you may find it useful to add this configuration line to your site config, within the server block, above the line where ssl.conf is included
`add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive";`
This will *ask* Google et al not to index and list your site. Be careful with this, as you will eventually be de-listed if you leave this line in on a site you wish to be present on search engines
+1 -1
View File
@@ -94,7 +94,7 @@ app_setup_block: |
### Site config and reverse proxy
* The default site config resides at `/config/nginx/site-confs/default.conf`. Feel free to modify this file, and you can add other conf files to this directory. However, if you delete the `default` file, a new default will be created on container start.
* Preset reverse proxy config files are added for popular apps. See the `README.md` file under `/config/nginx/proxy_confs` for instructions on how to enable them. The preset confs reside in and get imported from [this repo](https://github.com/linuxserver/reverse-proxy-confs).
* Preset reverse proxy config files are added for popular apps. See the `README.md` file under `/config/nginx/proxy-confs` for instructions on how to enable them. The preset confs reside in and get imported from [this repo](https://github.com/linuxserver/reverse-proxy-confs).
* If you wish to hide your site from search engine crawlers, you may find it useful to add this configuration line to your site config, within the server block, above the line where ssl.conf is included
`add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive";`
This will *ask* Google et al not to index and list your site. Be careful with this, as you will eventually be de-listed if you leave this line in on a site you wish to be present on search engines
+4 -4
View File
@@ -21,15 +21,15 @@ proxy_no_cache $cookie_session;
# Proxy Header Settings
proxy_set_header Connection $connection_upgrade;
proxy_set_header Early-Data $ssl_early_data;
proxy_set_header Host $host;
proxy_set_header Host $host; # NOTE: only use $host here, port is handled separately
proxy_set_header Proxy "";
proxy_set_header Upgrade $http_upgrade;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Host $host; # NOTE: only use $host here, port is handled separately
proxy_set_header X-Forwarded-Method $request_method;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-Port $request_port;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-Server $host; # NOTE: only use $host here, port is handled separately
proxy_set_header X-Forwarded-Ssl on;
proxy_set_header X-Forwarded-Uri $request_uri;
proxy_set_header X-Original-Method $request_method;
@@ -1,4 +1,4 @@
## Version 2026/03/07 - Changelog: https://github.com/linuxserver/docker-swag/commits/master/root/defaults/nginx/site-confs/default.conf.sample
## Version 2026/10/20 - Changelog: https://github.com/linuxserver/docker-swag/commits/master/root/defaults/nginx/site-confs/default.conf.sample
# redirect all traffic to https
server {
@@ -7,6 +7,11 @@ server {
location / {
return 301 https://$host$request_uri;
# NOTE FOR USERS: If your external HTTP and HTTPS ports are asymmetrical
# (e.g., External 8443 maps to Nginx 443),
# replace the return above this one and hardcode your external HTTPS port:
# return 301 https://$host:8443$request_uri;
}
}