3 Commits

2 changed files with 9 additions and 4 deletions

View File

@@ -6,8 +6,6 @@ COPY . .
RUN mkdocs build --clean
FROM joseluisq/static-web-server:2
FROM nginx:alpine
COPY config.toml /config.toml
COPY --from=builder /docs/site /public
ENV SWS_CONFIG_FILE=/config.toml

View File

@@ -1,14 +1,21 @@
[general]
host = "0.0.0.0"
port = 8080
port = 8443
root = "/public"
log-level = "error"
compression = true
http2 = true
http2-tls-cert = "/tls/tls.crt"
http2-tls-key = "/tls/tls.key"
security-headers = true
[[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:;"