Compare commits
3 Commits
2026.01.30
...
2026.09.02
| Author | SHA1 | Date | |
|---|---|---|---|
| 0452f4506c | |||
| 010073dabf | |||
| 9d35b3a2dd |
@@ -6,8 +6,6 @@ COPY . .
|
|||||||
RUN mkdocs build --clean
|
RUN mkdocs build --clean
|
||||||
|
|
||||||
FROM joseluisq/static-web-server:2
|
FROM joseluisq/static-web-server:2
|
||||||
|
|
||||||
FROM nginx:alpine
|
|
||||||
COPY config.toml /config.toml
|
COPY config.toml /config.toml
|
||||||
COPY --from=builder /docs/site /public
|
COPY --from=builder /docs/site /public
|
||||||
ENV SWS_CONFIG_FILE=/config.toml
|
ENV SWS_CONFIG_FILE=/config.toml
|
||||||
|
|||||||
11
config.toml
11
config.toml
@@ -1,14 +1,21 @@
|
|||||||
[general]
|
[general]
|
||||||
host = "0.0.0.0"
|
host = "0.0.0.0"
|
||||||
port = 8080
|
port = 8443
|
||||||
root = "/public"
|
root = "/public"
|
||||||
|
|
||||||
log-level = "error"
|
log-level = "error"
|
||||||
compression = true
|
compression = true
|
||||||
|
|
||||||
|
http2 = true
|
||||||
|
http2-tls-cert = "/tls/tls.crt"
|
||||||
|
http2-tls-key = "/tls/tls.key"
|
||||||
|
|
||||||
|
security-headers = true
|
||||||
|
|
||||||
[[advanced.headers]]
|
[[advanced.headers]]
|
||||||
source = "**/*"
|
source = "**/*"
|
||||||
|
|
||||||
[advanced.headers.headers]
|
[advanced.headers.headers]
|
||||||
"X-Frame-Options" = "DENY"
|
|
||||||
"X-Content-Type-Options" = "nosniff"
|
"X-Content-Type-Options" = "nosniff"
|
||||||
"Referrer-Policy" = "strict-origin-when-cross-origin"
|
"Referrer-Policy" = "strict-origin-when-cross-origin"
|
||||||
"Content-Security-Policy" = "default-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:;"
|
"Content-Security-Policy" = "default-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:;"
|
||||||
Reference in New Issue
Block a user