revised approach

This commit is contained in:
rskntroot
2025-06-14 09:50:15 +00:00
parent 12941cd2c5
commit cc32c6010e
27 changed files with 1092 additions and 133 deletions

33
docs/compose.yml Normal file
View File

@@ -0,0 +1,33 @@
services:
mkdocs:
image: squidfunk/mkdocs-material
command:
- build
volumes:
- ./mkdocs:/docs
docs:
image: nginx:latest
restart: unless-stopped
labels:
- traefik.enable=true
- traefik.http.routers.docs.entrypoints=websecure
- traefik.http.routers.docs.rule=Host(`docs.rskio.com`)
- traefik.http.routers.docs.tls=true
- traefik.http.routers.docs.tls.options=external@file
- traefik.http.routers.docs.tls.certresolver=rskio_certresolver
- traefik.http.routers.docs.middlewares=secureHeaders@file
- traefik.http.routers.docs.service=docs@docker
- traefik.http.services.docs.loadbalancer.server.port=80
volumes:
- ./mkdocs/site:/opt/share/mkdocs/html:ro
- ./nginx/etc/conf.d:/etc/nginx/conf.d:ro
depends_on:
mkdocs:
condition: service_completed_successfully
networks:
- traefik
networks:
traefik:
external: true

1
docs/mkdocs Symbolic link
View File

@@ -0,0 +1 @@
/home/lost/workspace/rskio/mkdocs

View File

@@ -0,0 +1,31 @@
server {
listen 80;
listen [::]:80;
server_name rskio.com;
server_tokens off;
add_header X-Frame-Options "SAMEORIGIN";
add_header Strict-Transport-Security "max-age=31536000; includeSubdomains; preload";
add_header Content-Security-Policy "default-src 'self' http: https: data: blob: 'unsafe-inline'" always;
add_header X-XSS-Protection "1; mode=block";
# rskio logging is handled via traefik
#access_log /var/log/nginx/host.access.log main;
location / {
root /opt/share/mkdocs/html;
index index.html index.htm;
limit_except GET HEAD POST { deny all; }
}
# rskio auth is handled via traefik
#error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
limit_except GET HEAD POST { deny all; }
}
}