This commit is contained in:
Han Wu 2021-12-02 12:12:47 +00:00
parent b39a970908
commit 0458f30659
13 changed files with 13972 additions and 0 deletions

26
doc/doc-compose.yml Normal file
View File

@ -0,0 +1,26 @@
version: "3.3"
services:
nginx:
image: nginx:stable-alpine
volumes:
- ./doc:/usr/share/nginx/html
- ./nginx-doc.conf:/etc/nginx/conf.d/default.conf
deploy:
labels:
- "traefik.enable=true"
- "traefik.http.routers.doc.rule=Host(`doc.trustai.uk`)"
- "traefik.http.routers.doc.entrypoints=web"
- "traefik.http.services.doc.loadbalancer.server.port=80"
# TLS
- "traefik.http.routers.docs.rule=Host(`doc.trustai.uk`)"
- "traefik.http.routers.docs.entrypoints=websecure"
- "traefik.http.routers.docs.tls.certresolver=myhttpchallenge"
# Redirect
- "traefik.http.routers.doc.middlewares=https_redirect"
- "traefik.http.middlewares.https_redirect.redirectscheme.scheme=https"
networks:
- traefik-public
networks:
traefik-public:
external: true

Binary file not shown.

After

Width:  |  Height:  |  Size: 139 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1018 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 846 KiB

File diff suppressed because it is too large Load Diff

13
doc/nginx-doc.conf Normal file
View File

@ -0,0 +1,13 @@
server{
listen 80;
server_name _;
real_ip_header X-Forwarded-For;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
root /usr/share/nginx/html;
index index.html;
autoindex on;
}