Add wkd service

This commit is contained in:
Marko Korhonen 2022-12-19 22:22:12 +02:00
parent 0039ef7d86
commit 302aeb40b9
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890
2 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,21 @@
[services.wkd]
image = "nginx"
container_name = "wkd"
volumes = [
"/var/www/wkd:/wkd:ro",
"./nginx.conf:/etc/nginx/conf.d/default.conf",
]
networks = ["proxy"]
restart = "unless-stopped"
labels = [
"traefik.enable=true",
"traefik.docker.network=proxy",
"traefik.http.routers.wkd.entrypoints=https",
"traefik.http.routers.wkd.middlewares=secHeaders@file,compress@file",
"traefik.http.routers.wkd.rule=Host(`openpgpkey.korhonen.cc`)",
"traefik.http.routers.wkd.service=wkd",
"traefik.http.services.wkd.loadbalancer.server.port=80",
]
[networks.proxy]
external = true

10
docker/wkd/nginx.conf Normal file
View file

@ -0,0 +1,10 @@
server {
listen 80;
listen [::]:80;
location /.well-known/openpgpkey/hu/ {
default_type "application/octet-stream";
add_header Access-Control-Allow-Origin * always;
}
}