Add adguard
This commit is contained in:
parent
c55a1fca17
commit
cd3295c3f4
3 changed files with 31 additions and 13 deletions
|
@ -298,6 +298,7 @@ frontend frontend_default
|
||||||
|
|
||||||
acl letsencrypt path_beg /.well-known/acme-challenge/
|
acl letsencrypt path_beg /.well-known/acme-challenge/
|
||||||
|
|
||||||
|
acl adguard hdr(host) -i adguard.benoit.jp.net
|
||||||
acl archive hdr(host) -i blog.benpro.fr.archive.benoit.jp.net
|
acl archive hdr(host) -i blog.benpro.fr.archive.benoit.jp.net
|
||||||
acl archive hdr(host) -i lekernelpanique.fr.archive.benoit.jp.net
|
acl archive hdr(host) -i lekernelpanique.fr.archive.benoit.jp.net
|
||||||
acl archive hdr(host) -i sysadmin-bookmarks.archive.benoit.jp.net
|
acl archive hdr(host) -i sysadmin-bookmarks.archive.benoit.jp.net
|
||||||
|
@ -305,8 +306,10 @@ frontend frontend_default
|
||||||
acl laminar hdr(host) -i laminar.benoit.jp.net
|
acl laminar hdr(host) -i laminar.benoit.jp.net
|
||||||
acl linkding hdr(host) -i linkding.benoit.jp.net
|
acl linkding hdr(host) -i linkding.benoit.jp.net
|
||||||
acl mastodon hdr(host) -i mastodon.benoit.jp.net
|
acl mastodon hdr(host) -i mastodon.benoit.jp.net
|
||||||
#http-request deny if dns !JP !SG !letsencrypt
|
|
||||||
|
|
||||||
|
http-request deny if adguard !JP !letsencrypt
|
||||||
|
|
||||||
|
use_backend adguard if adguard
|
||||||
use_backend archive if archive
|
use_backend archive if archive
|
||||||
use_backend forgejo if forgejo
|
use_backend forgejo if forgejo
|
||||||
use_backend laminar if laminar
|
use_backend laminar if laminar
|
||||||
|
|
29
04listen.cfg
29
04listen.cfg
|
@ -1,10 +1,13 @@
|
||||||
# Listens (frontend and backend combined)
|
# Listens (frontend and backend combined)
|
||||||
listen ssh
|
# Forgejo
|
||||||
bind :22
|
listen ssh
|
||||||
bind :::22 v6only
|
bind :22
|
||||||
mode tcp
|
bind :::22 v6only
|
||||||
option tcplog
|
mode tcp
|
||||||
server git-ssh forgejo.incus:10022 send-proxy check
|
option tcplog
|
||||||
|
server git-ssh forgejo.incus:10022 send-proxy check
|
||||||
|
|
||||||
|
# Mailcow
|
||||||
# listen smtp
|
# listen smtp
|
||||||
# bind :25
|
# bind :25
|
||||||
# bind :::25 v6only
|
# bind :::25 v6only
|
||||||
|
@ -29,9 +32,11 @@
|
||||||
# mode tcp
|
# mode tcp
|
||||||
# option tcplog
|
# option tcplog
|
||||||
# server mail 10.78.127.231:14190 send-proxy
|
# server mail 10.78.127.231:14190 send-proxy
|
||||||
# listen adguard-dot
|
|
||||||
# bind :853
|
# Adguard
|
||||||
# bind :::853 v6only
|
listen adguard-dot
|
||||||
# mode tcp
|
bind :853
|
||||||
# option tcplog
|
bind :::853 v6only
|
||||||
# server adguard 10.78.127.201:10853 send-proxy
|
mode tcp
|
||||||
|
option tcplog
|
||||||
|
server adguard adguard.incus:10853 send-proxy
|
||||||
|
|
|
@ -54,3 +54,13 @@ backend archive
|
||||||
http-response set-header Referrer-Policy "strict-origin-when-cross-origin"
|
http-response set-header Referrer-Policy "strict-origin-when-cross-origin"
|
||||||
http-response set-header Cross-Origin-Resource-Policy "same-origin"
|
http-response set-header Cross-Origin-Resource-Policy "same-origin"
|
||||||
server archive archive.incus:80 check
|
server archive archive.incus:80 check
|
||||||
|
|
||||||
|
backend adguard
|
||||||
|
# set HSTS for one year after all responses
|
||||||
|
http-response set-header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
|
||||||
|
# add some Security headers
|
||||||
|
http-response set-header X-Frame-Options "SAMEORIGIN"
|
||||||
|
http-response set-header X-Content-Type-Options "nosniff"
|
||||||
|
http-response set-header Referrer-Policy "strict-origin-when-cross-origin"
|
||||||
|
http-response set-header Cross-Origin-Resource-Policy "same-origin"
|
||||||
|
server adguard adguard.incus:3000 check
|
||||||
|
|
Loading…
Add table
Reference in a new issue