feat: trial private-network only zones
This commit is contained in:
parent
79da85378e
commit
79d73489e5
2 changed files with 14 additions and 0 deletions
13
Caddyfile
13
Caddyfile
|
@ -1,5 +1,15 @@
|
||||||
# Components
|
# Components
|
||||||
|
|
||||||
|
(private_network_only) {
|
||||||
|
@ipfilter {
|
||||||
|
not header X-Forwarded-For {$PRIVATE_NET_IP}
|
||||||
|
}
|
||||||
|
|
||||||
|
route @ipfilter {
|
||||||
|
respond "nty. :3" 418
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
(application_logging) {
|
(application_logging) {
|
||||||
log {
|
log {
|
||||||
level INFO
|
level INFO
|
||||||
|
@ -43,6 +53,7 @@
|
||||||
# Routes
|
# Routes
|
||||||
|
|
||||||
:53100 {
|
:53100 {
|
||||||
|
import private_network_only
|
||||||
import application_base "grafana" 3100
|
import application_base "grafana" 3100
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -55,6 +66,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
:55000 {
|
:55000 {
|
||||||
|
import private_network_only
|
||||||
import application_base "registry" 5000
|
import application_base "registry" 5000
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -67,5 +79,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
:58112 {
|
:58112 {
|
||||||
|
import private_network_only
|
||||||
import application_base "deluge-web" 8112
|
import application_base "deluge-web" 8112
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,6 +25,7 @@ volumes:
|
||||||
containers:
|
containers:
|
||||||
- name: caddy
|
- name: caddy
|
||||||
image: caddy:2.8.4-alpine
|
image: caddy:2.8.4-alpine
|
||||||
|
env-file: /etc/opt/spadinastan/sesame.env
|
||||||
volumes:
|
volumes:
|
||||||
- name: caddy-data
|
- name: caddy-data
|
||||||
container: /data
|
container: /data
|
||||||
|
|
Loading…
Reference in a new issue