Upgrade to SWS v3 and enable TLS - certificate mounting required
This commit is contained in:
14
config.toml
14
config.toml
@@ -1,14 +1,24 @@
|
||||
[general]
|
||||
host = "0.0.0.0"
|
||||
port = 8080
|
||||
port = 8443
|
||||
root = "/public"
|
||||
|
||||
log-level = "error"
|
||||
compression = true
|
||||
|
||||
tls = true
|
||||
tls-cert = "/tls/tls.crt"
|
||||
tls-key = "/tls/tls.key"
|
||||
http2 = true
|
||||
|
||||
security-headers = true
|
||||
|
||||
[advanced]
|
||||
|
||||
[[advanced.headers]]
|
||||
source = "**/*"
|
||||
|
||||
[advanced.headers.headers]
|
||||
"X-Frame-Options" = "DENY"
|
||||
"X-Content-Type-Options" = "nosniff"
|
||||
"Referrer-Policy" = "strict-origin-when-cross-origin"
|
||||
"Content-Security-Policy" = "default-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:;"
|
||||
Reference in New Issue
Block a user