155 lines
3.7 KiB
Django/Jinja
155 lines
3.7 KiB
Django/Jinja
{
|
|
admin off
|
|
}
|
|
|
|
www.{{ services.samsapti_dev.domain }} {
|
|
tls {{ secrets.tls_email }}
|
|
|
|
log {
|
|
output discard
|
|
}
|
|
|
|
redir https://{{ services.samsapti_dev.domain }}{uri}
|
|
}
|
|
|
|
{{ services.samsapti_dev.domain }} {
|
|
tls {{ secrets.tls_email }}
|
|
|
|
log {
|
|
output discard
|
|
}
|
|
|
|
header {
|
|
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
|
|
Onion-Location "http://{{ services.samsapti_dev.onion }}{uri}"
|
|
-Server
|
|
}
|
|
|
|
reverse_proxy samsapti:80
|
|
}
|
|
|
|
{{ services.wkd.domain }} {
|
|
tls {{ secrets.tls_email }}
|
|
|
|
log {
|
|
output discard
|
|
}
|
|
|
|
header {
|
|
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
|
|
-Server
|
|
}
|
|
|
|
reverse_proxy wkd:80
|
|
}
|
|
|
|
{{ services.jitsi_meet.domain }} {
|
|
tls {{ secrets.tls_email }}
|
|
|
|
log {
|
|
output discard
|
|
}
|
|
|
|
header {
|
|
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
|
|
-Server
|
|
}
|
|
|
|
reverse_proxy jitsi_meet:80
|
|
}
|
|
|
|
{{ services.lingva.domain }} {
|
|
tls {{ secrets.tls_email }}
|
|
|
|
log {
|
|
output discard
|
|
}
|
|
|
|
header {
|
|
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
|
|
Onion-Location "http://{{ services.lingva.onion }}{uri]"
|
|
-Server
|
|
}
|
|
|
|
reverse_proxy lingva:3000
|
|
}
|
|
|
|
{{ services.searxng.domain }} {
|
|
tls {{ secrets.tls_email }}
|
|
|
|
log {
|
|
output discard
|
|
}
|
|
|
|
@api {
|
|
path /config
|
|
path /healthz
|
|
path /stats/errors
|
|
path /stats/checker
|
|
}
|
|
|
|
@static {
|
|
path /static/*
|
|
}
|
|
|
|
@notstatic {
|
|
not path /static/*
|
|
}
|
|
|
|
@imageproxy {
|
|
path /image_proxy
|
|
}
|
|
|
|
@notimageproxy {
|
|
not path /image_proxy
|
|
}
|
|
|
|
header {
|
|
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
|
|
X-XSS-Protection "1; mode=block"
|
|
X-Content-Type-Options "nosniff"
|
|
Permissions-Policy "accelerometer=(),ambient-light-sensor=(),autoplay=(),camera=(),encrypted-media=(),focus-without-user-activation=(),geolocation=(),gyroscope=(),magnetometer=(),microphone=(),midi=(),payment=(),picture-in-picture=(),speaker=(),sync-xhr=(),usb=(),vr=(),interest-cohort=()"
|
|
Referrer-Policy "no-referrer"
|
|
X-Robots-Tag "noindex, noarchive, nofollow"
|
|
Onion-Location "http://{{ services.searxng.onion }}{uri}"
|
|
-Server
|
|
}
|
|
|
|
header @api {
|
|
Access-Control-Allow-Methods "GET, OPTIONS"
|
|
Access-Control-Allow-Origin "*"
|
|
}
|
|
|
|
# Cache
|
|
header @static {
|
|
# Cache
|
|
Cache-Control "public, max-age=31536000"
|
|
defer
|
|
}
|
|
|
|
header @notstatic {
|
|
# No Cache
|
|
Cache-Control "no-cache, no-store"
|
|
Pragma "no-cache"
|
|
}
|
|
|
|
# CSP (see http://content-security-policy.com/ )
|
|
header @imageproxy {
|
|
Content-Security-Policy "default-src 'none'; img-src 'self' data:"
|
|
}
|
|
|
|
header @notimageproxy {
|
|
Content-Security-Policy "upgrade-insecure-requests; default-src 'none'; script-src 'self'; style-src 'self' 'unsafe-inline'; form-action 'self' https://github.com/searxng/searxng/issues/new; font-src 'self'; frame-ancestors 'self'; base-uri 'self'; connect-src 'self' https://overpass-api.de; img-src 'self' data: https://*.tile.openstreetmap.org; frame-src https://www.youtube-nocookie.com https://player.vimeo.com https://www.dailymotion.com https://www.deezer.com https://www.mixcloud.com https://w.soundcloud.com https://embed.spotify.com"
|
|
}
|
|
|
|
# SearXNG
|
|
handle {
|
|
encode zstd gzip
|
|
|
|
reverse_proxy searxng:8080 {
|
|
header_up X-Forwarded-Port {http.request.port}
|
|
header_up X-Forwarded-Proto {http.request.scheme}
|
|
}
|
|
}
|
|
}
|