Compare commits
2
Commits
b1def329e9
...
03d2743507
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
03d2743507 | ||
|
|
f957ca2545 |
+1
-1
@@ -14,7 +14,7 @@ variable "nginx_sites" {
|
|||||||
authentication_required = optional(bool, false)
|
authentication_required = optional(bool, false)
|
||||||
redirect_to_https_bool = optional(bool, true)
|
redirect_to_https_bool = optional(bool, true)
|
||||||
listen_port_80_bool = optional(bool, false)
|
listen_port_80_bool = optional(bool, false)
|
||||||
geoip_blocking = optional(bool, true)
|
geoip_blocking = optional(bool, false)
|
||||||
geoip_allow = optional(list(string), ["FR", "GB"])
|
geoip_allow = optional(list(string), ["FR", "GB"])
|
||||||
}))
|
}))
|
||||||
|
|
||||||
|
|||||||
@@ -47,12 +47,12 @@ server {
|
|||||||
<b style=\"color:red; font-size:18pt; border:2pt solid black; padding:5pt;\">
|
<b style=\"color:red; font-size:18pt; border:2pt solid black; padding:5pt;\">
|
||||||
You are banned!</b></center>";
|
You are banned!</b></center>";
|
||||||
}
|
}
|
||||||
location ^~ /wp-content {
|
#location ^~ /wp-content {
|
||||||
# Logs the IP in "deny IP;" format to your specific file
|
## Logs the IP in "deny IP;" format to your specific file
|
||||||
access_log /etc/nginx/blacklisted.d/blacklisted-sessions.conf deny_style;
|
# access_log /etc/nginx/blacklisted.d/blacklisted-sessions.conf deny_style;
|
||||||
access_log /etc/nginx/blacklisted.memory.d/blacklisted-sessions.conf deny_style;
|
# access_log /etc/nginx/blacklisted.memory.d/blacklisted-sessions.conf deny_style;
|
||||||
return 444;
|
# return 444;
|
||||||
}
|
#}
|
||||||
|
|
||||||
access_log /var/log/nginx/access.log my_custom_format;
|
access_log /var/log/nginx/access.log my_custom_format;
|
||||||
access_log /var/log/nginx/ip_audit.log ip_audit;
|
access_log /var/log/nginx/ip_audit.log ip_audit;
|
||||||
|
|||||||
@@ -47,6 +47,17 @@ nginx_sites = {
|
|||||||
http2_bool = true
|
http2_bool = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
redirect-testing = {
|
||||||
|
service = "django-testing-svc.django-testing.svc:8000"
|
||||||
|
proxy_cache = true
|
||||||
|
http2_bool = true
|
||||||
|
}
|
||||||
|
|
||||||
|
job-testing = {
|
||||||
|
service = "django-testing-svc.django-testing.svc:8000"
|
||||||
|
proxy_cache = true
|
||||||
|
http2_bool = true
|
||||||
|
}
|
||||||
echo = {
|
echo = {
|
||||||
enabled = false
|
enabled = false
|
||||||
# service = "echo-server.echo-server.svc:80"
|
# service = "echo-server.echo-server.svc:80"
|
||||||
@@ -102,7 +113,9 @@ client_max_body_size 20m;
|
|||||||
proxy_pass_https = true
|
proxy_pass_https = true
|
||||||
}
|
}
|
||||||
sonarr = {
|
sonarr = {
|
||||||
service = "sonarr-svc.servarr.svc:8989"
|
service = "sonarr-svc.servarr.svc:8989"
|
||||||
|
geoip_allow = ["FR", "GB", "NL"]
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
keycloak = {
|
keycloak = {
|
||||||
@@ -173,17 +186,23 @@ client_max_body_size 20m;
|
|||||||
service = "portainer.portainer.svc"
|
service = "portainer.portainer.svc"
|
||||||
}
|
}
|
||||||
prowlarr = {
|
prowlarr = {
|
||||||
service = "prowlarr-svc.servarr.svc:9696"
|
service = "prowlarr-svc.servarr.svc:9696"
|
||||||
|
geoip_allow = ["FR", "GB", "NL"]
|
||||||
|
|
||||||
}
|
}
|
||||||
proxmox = {
|
proxmox = {
|
||||||
service = "192.168.6.2:8006"
|
service = "192.168.6.2:8006"
|
||||||
enabled = false
|
enabled = false
|
||||||
}
|
}
|
||||||
qbittorrent = {
|
qbittorrent = {
|
||||||
service = "qbittorrent-svc.servarr.svc:8080"
|
service = "qbittorrent-svc.servarr.svc:8080"
|
||||||
|
geoip_allow = ["FR", "GB", "NL"]
|
||||||
|
|
||||||
}
|
}
|
||||||
radarr = {
|
radarr = {
|
||||||
service = "radarr-svc.servarr.svc:7878"
|
service = "radarr-svc.servarr.svc:7878"
|
||||||
|
geoip_allow = ["FR", "GB", "NL"]
|
||||||
|
|
||||||
}
|
}
|
||||||
recommendarr = {
|
recommendarr = {
|
||||||
service = "recommendarr-svc.servarr.svc:3000"
|
service = "recommendarr-svc.servarr.svc:3000"
|
||||||
@@ -218,6 +237,7 @@ client_max_body_size 20m;
|
|||||||
immich = {
|
immich = {
|
||||||
#service = "immich-server.immich.svc:2283"
|
#service = "immich-server.immich.svc:2283"
|
||||||
service = "immich-svc.immich.svc:2283"
|
service = "immich-svc.immich.svc:2283"
|
||||||
|
geoip_allow = ["FR", "GB", "NL"]
|
||||||
extra-value-location = <<EOT
|
extra-value-location = <<EOT
|
||||||
proxy_set_header Connection "upgrade";
|
proxy_set_header Connection "upgrade";
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
@@ -246,9 +266,14 @@ client_max_body_size 20m;
|
|||||||
enabled = false
|
enabled = false
|
||||||
redirect_to_https_bool = false
|
redirect_to_https_bool = false
|
||||||
listen_port_80_bool = true
|
listen_port_80_bool = true
|
||||||
service = "screeps-svc.screeps.svc:21025"
|
service = "screeps-svc.screeps.svc:25565"
|
||||||
|
}
|
||||||
|
minecraft = {
|
||||||
|
enabled = false
|
||||||
|
redirect_to_https_bool = false
|
||||||
|
listen_port_80_bool = true
|
||||||
|
service = "minecraft-svc.minecraft.svc:21025"
|
||||||
}
|
}
|
||||||
|
|
||||||
stirling = {
|
stirling = {
|
||||||
enabled = false
|
enabled = false
|
||||||
service = "stirling-svc.stirling.svc:8080"
|
service = "stirling-svc.stirling.svc:8080"
|
||||||
@@ -345,7 +370,7 @@ proxy_set_header Connection "upgrade";
|
|||||||
}
|
}
|
||||||
stash = {
|
stash = {
|
||||||
# enabled = false
|
# enabled = false
|
||||||
service = "stash-svc.stash.svc:9999"
|
service = "stash-svc.stash.svc:9999"
|
||||||
#geoip_blocking = false
|
#geoip_blocking = false
|
||||||
#extra-value= <<EOT
|
#extra-value= <<EOT
|
||||||
# proxy_protocol on;
|
# proxy_protocol on;
|
||||||
@@ -391,23 +416,6 @@ proxy_set_header Connection "upgrade";
|
|||||||
enabled = false
|
enabled = false
|
||||||
service = "jobspy-svc.jobspy.svc:8000"
|
service = "jobspy-svc.jobspy.svc:8000"
|
||||||
}
|
}
|
||||||
tprowlarr = {
|
|
||||||
enabled = false
|
|
||||||
service = "prowlarr-svc.tservarr.svc:9696"
|
|
||||||
}
|
|
||||||
tradarr = {
|
|
||||||
enabled = false
|
|
||||||
service = "radarr-svc.tservarr.svc:7878"
|
|
||||||
}
|
|
||||||
tsonarr = {
|
|
||||||
enabled = false
|
|
||||||
service = "sonarr-svc.tservarr.svc:8989"
|
|
||||||
}
|
|
||||||
tqbitorrent = {
|
|
||||||
enabled = false
|
|
||||||
service = "qbitorrent-svc.tservarr.svc:8080"
|
|
||||||
}
|
|
||||||
|
|
||||||
poste = {
|
poste = {
|
||||||
enabled = false
|
enabled = false
|
||||||
service = "poste-svc.poste.svc:443"
|
service = "poste-svc.poste.svc:443"
|
||||||
@@ -430,8 +438,9 @@ proxy_set_header Connection "upgrade";
|
|||||||
}
|
}
|
||||||
wikijs = {
|
wikijs = {
|
||||||
#enabled = false
|
#enabled = false
|
||||||
service = "wikijs-svc.wikijs.svc:3000"
|
geoip_blocking = false
|
||||||
extra-value = <<EOT
|
service = "wikijs-svc.wikijs.svc:3000"
|
||||||
|
extra-value = <<EOT
|
||||||
client_max_body_size 20m;
|
client_max_body_size 20m;
|
||||||
proxy_request_buffering off;
|
proxy_request_buffering off;
|
||||||
EOT
|
EOT
|
||||||
@@ -486,8 +495,19 @@ proxy_set_header Connection "upgrade";
|
|||||||
EOT
|
EOT
|
||||||
|
|
||||||
}
|
}
|
||||||
overleaf = {
|
opencloud = {
|
||||||
service = "overleaf-svc.overleaf.svc:80"
|
enabled = false
|
||||||
|
service = "opencloud-svc.opencloud.svc:9200"
|
||||||
|
proxy_pass_https = true
|
||||||
|
|
||||||
}
|
}
|
||||||
|
owncloud = {
|
||||||
|
enabled = false
|
||||||
|
service = "owncloud-svc.owncloud.svc:8080"
|
||||||
|
}
|
||||||
|
|
||||||
|
#overleaf = {
|
||||||
|
# service = "overleaf-svc.overleaf.svc:80"
|
||||||
|
#}
|
||||||
}
|
}
|
||||||
deny_ip = ["1.2.3.4"]
|
deny_ip = ["1.2.3.4"]
|
||||||
|
|||||||
Reference in New Issue
Block a user