Add wkd service
This commit is contained in:
parent
0039ef7d86
commit
302aeb40b9
2 changed files with 31 additions and 0 deletions
21
docker/wkd/docker-compose.toml
Normal file
21
docker/wkd/docker-compose.toml
Normal 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
10
docker/wkd/nginx.conf
Normal 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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in a new issue