mirror of
https://github.com/linuxserver/docker-swag.git
synced 2026-04-20 19:21:52 +09:00
Compare commits
6 Commits
1.9.0-ls18
...
1.9.0-ls20
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3e3dccd836 | ||
|
|
1d08b6f2e1 | ||
|
|
01dd12f567 | ||
|
|
50371fea4f | ||
|
|
a81ab8bcf1 | ||
|
|
38fa575e1e |
@@ -322,6 +322,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
|
|||||||
|
|
||||||
## Versions
|
## Versions
|
||||||
|
|
||||||
|
* **29.10.20:** - [Existing users should update:](https://github.com/linuxserver/docker-swag/blob/master/README.md#updating-configs) ssl.conf - Add frame-ancestors to Content-Security-Policy.
|
||||||
* **04.10.20:** - [Existing users should update:](https://github.com/linuxserver/docker-swag/blob/master/README.md#updating-configs) nginx.conf, proxy.conf, and ssl.conf - Minor cleanups and reordering.
|
* **04.10.20:** - [Existing users should update:](https://github.com/linuxserver/docker-swag/blob/master/README.md#updating-configs) nginx.conf, proxy.conf, and ssl.conf - Minor cleanups and reordering.
|
||||||
* **20.09.20:** - [Existing users should update:](https://github.com/linuxserver/docker-swag/blob/master/README.md#updating-configs) nginx.conf - Added geoip2 configs. Added MAXMINDDB_LICENSE_KEY variable to readme.
|
* **20.09.20:** - [Existing users should update:](https://github.com/linuxserver/docker-swag/blob/master/README.md#updating-configs) nginx.conf - Added geoip2 configs. Added MAXMINDDB_LICENSE_KEY variable to readme.
|
||||||
* **08.09.20:** - Add php7-xsl.
|
* **08.09.20:** - Add php7-xsl.
|
||||||
|
|||||||
@@ -149,6 +149,7 @@ app_setup_nginx_reverse_proxy_block: ""
|
|||||||
|
|
||||||
# changelog
|
# changelog
|
||||||
changelogs:
|
changelogs:
|
||||||
|
- { date: "29.10.20:", desc: "[Existing users should update:](https://github.com/linuxserver/docker-swag/blob/master/README.md#updating-configs) ssl.conf - Add frame-ancestors to Content-Security-Policy." }
|
||||||
- { date: "04.10.20:", desc: "[Existing users should update:](https://github.com/linuxserver/docker-swag/blob/master/README.md#updating-configs) nginx.conf, proxy.conf, and ssl.conf - Minor cleanups and reordering." }
|
- { date: "04.10.20:", desc: "[Existing users should update:](https://github.com/linuxserver/docker-swag/blob/master/README.md#updating-configs) nginx.conf, proxy.conf, and ssl.conf - Minor cleanups and reordering." }
|
||||||
- { date: "20.09.20:", desc: "[Existing users should update:](https://github.com/linuxserver/docker-swag/blob/master/README.md#updating-configs) nginx.conf - Added geoip2 configs. Added MAXMINDDB_LICENSE_KEY variable to readme."}
|
- { date: "20.09.20:", desc: "[Existing users should update:](https://github.com/linuxserver/docker-swag/blob/master/README.md#updating-configs) nginx.conf - Added geoip2 configs. Added MAXMINDDB_LICENSE_KEY variable to readme."}
|
||||||
- { date: "08.09.20:", desc: "Add php7-xsl." }
|
- { date: "08.09.20:", desc: "Add php7-xsl." }
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
## Version 2020/09/20 - Changelog: https://github.com/linuxserver/docker-swag/commits/master/root/defaults/geoip2.conf
|
## Version 2020/10/27 - Changelog: https://github.com/linuxserver/docker-swag/commits/master/root/defaults/geoip2.conf
|
||||||
# To enable, uncommment the Geoip2 config line in nginx.conf
|
# To enable, uncommment the Geoip2 config line in nginx.conf
|
||||||
# Add the -e MAXMINDDB_LICENSE_KEY=<licensekey> to automatically download the Geolite2 database.
|
# Add the -e MAXMINDDB_LICENSE_KEY=<licensekey> to automatically download the Geolite2 database.
|
||||||
# A Maxmind license key can be acquired here: https://www.maxmind.com/en/geolite2/signup
|
# A Maxmind license key can be acquired here: https://www.maxmind.com/en/geolite2/signup
|
||||||
@@ -18,48 +18,52 @@ geoip2 /config/geoip2db/GeoLite2-City.mmdb {
|
|||||||
# GEOIP2 COUNTRY CONFIG
|
# GEOIP2 COUNTRY CONFIG
|
||||||
map $geoip2_data_country_iso_code $allowed_country {
|
map $geoip2_data_country_iso_code $allowed_country {
|
||||||
# default must be yes or no
|
# default must be yes or no
|
||||||
|
# If default is set to "no" you will need to add the local ip ranges that you want to allow access in the $allow_list variable below.
|
||||||
default yes;
|
default yes;
|
||||||
|
|
||||||
# Below you will setup conditions with yes or no
|
# Below you will setup conditions with yes or no
|
||||||
# ex: <condition> <yes/no>;
|
# ex: <condition> <yes/no>;
|
||||||
# If your default is set to yes you can setup conditions that would set it to no (and vice versa)
|
|
||||||
# Conditions are either network address (CIDR notation) or country code
|
|
||||||
|
|
||||||
# allow United Kingdom.
|
# allow United Kingdom.
|
||||||
#GB yes;
|
#GB yes;
|
||||||
|
|
||||||
# allow local access.
|
|
||||||
#192.168.1.0/24 yes;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# GEOIP2 CITY CONFIG
|
# GEOIP2 CITY CONFIG
|
||||||
map $geoip2_data_city_name $allowed_city {
|
map $geoip2_data_city_name $allowed_city {
|
||||||
# default must be yes or no
|
# default must be yes or no
|
||||||
|
# If default is set to "no" you will need to add the local ip ranges that you want to allow access in the $allow_list variable below.
|
||||||
default yes;
|
default yes;
|
||||||
|
|
||||||
# Below you will setup conditions with yes or no
|
# Below you will setup conditions with yes or no
|
||||||
# ex: <condition> <yes/no>;
|
# ex: <condition> <yes/no>;
|
||||||
# If your default is set to yes you can setup conditions that would set it to no (and vice versa)
|
|
||||||
# Conditions are either network address (CIDR notation) or city name
|
|
||||||
|
|
||||||
# allow Inverness.
|
# allow Inverness.
|
||||||
#Inverness yes;
|
#Inverness yes;
|
||||||
|
}
|
||||||
|
|
||||||
# allow local access.
|
# ALLOW LOCAL ACCESS
|
||||||
#192.168.1.0/24 yes;
|
geo $allow_list {
|
||||||
|
default yes; # Set this to no if $allowed_country or $allowed_city default is no.
|
||||||
|
# IP/CIDR yes; # e.g. 192.168.1.0/24 yes;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Server config example:
|
# Server config example:
|
||||||
# Add the following if statement inside any server context where you want to geo block countries.
|
# Add the following if statements inside any server context where you want to geo block countries.
|
||||||
|
|
||||||
########################################
|
########################################
|
||||||
|
# if ($allow_list = yes) {
|
||||||
|
# set $allowed_country yes;
|
||||||
|
# }
|
||||||
# if ($allowed_country = no) {
|
# if ($allowed_country = no) {
|
||||||
# return 444;
|
# return 444;
|
||||||
# }
|
# }
|
||||||
#########################################
|
#########################################
|
||||||
|
|
||||||
# Add the following if statement inside any server context where you want to geo block cities.
|
# Add the following if statements inside any server context where you want to geo block cities.
|
||||||
########################################
|
########################################
|
||||||
|
# if ($allow_list = yes) {
|
||||||
|
# set $allowed_country yes;
|
||||||
|
# }
|
||||||
# if ($allowed_city = no) {
|
# if ($allowed_city = no) {
|
||||||
# return 444;
|
# return 444;
|
||||||
# }
|
# }
|
||||||
@@ -84,6 +88,10 @@ map $geoip2_data_city_name $allowed_city {
|
|||||||
# #include /config/nginx/authelia-server.conf;
|
# #include /config/nginx/authelia-server.conf;
|
||||||
|
|
||||||
|
|
||||||
|
# # Allow lan access if default is set to no
|
||||||
|
# if ($allow_list = yes) {
|
||||||
|
# set $allowed_country yes;
|
||||||
|
# }
|
||||||
# # Country geo block
|
# # Country geo block
|
||||||
# if ($allowed_country = no) {
|
# if ($allowed_country = no) {
|
||||||
# return 444;
|
# return 444;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
## Version 2020/10/04 - Changelog: https://github.com/linuxserver/docker-swag/commits/master/root/defaults/ssl.conf
|
## Version 2020/10/29 - Changelog: https://github.com/linuxserver/docker-swag/commits/master/root/defaults/ssl.conf
|
||||||
|
|
||||||
### Mozilla Recommendations
|
### Mozilla Recommendations
|
||||||
# generated 2020-06-17, Mozilla Guideline v5.4, nginx 1.18.0-r0, OpenSSL 1.1.1g-r0, intermediate configuration
|
# generated 2020-06-17, Mozilla Guideline v5.4, nginx 1.18.0-r0, OpenSSL 1.1.1g-r0, intermediate configuration
|
||||||
@@ -40,7 +40,7 @@ ssl_early_data on;
|
|||||||
|
|
||||||
# Optional additional headers
|
# Optional additional headers
|
||||||
#add_header Cache-Control "no-transform" always;
|
#add_header Cache-Control "no-transform" always;
|
||||||
#add_header Content-Security-Policy "upgrade-insecure-requests";
|
#add_header Content-Security-Policy "upgrade-insecure-requests; frame-ancestors 'self'";
|
||||||
#add_header Referrer-Policy "same-origin" always;
|
#add_header Referrer-Policy "same-origin" always;
|
||||||
#add_header X-Content-Type-Options "nosniff" always;
|
#add_header X-Content-Type-Options "nosniff" always;
|
||||||
#add_header X-Frame-Options "SAMEORIGIN" always;
|
#add_header X-Frame-Options "SAMEORIGIN" always;
|
||||||
|
|||||||
Reference in New Issue
Block a user