Remove unneeded labels and containers after moving to traefik
parent
cacf752385
commit
eb1321303c
@ -1,28 +0,0 @@
|
||||
[services]
|
||||
|
||||
[services.nginx]
|
||||
image = "nginx"
|
||||
container_name = "korhonen.cc"
|
||||
volumes = [
|
||||
"/var/www/korhonen.cc:/korhonen.cc: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.korhonen-redirect.entrypoints=http",
|
||||
"traefik.http.routers.korhonen-redirect.rule=Host(`korhonen.cc`) || Host(`www.korhonen.cc`)",
|
||||
"traefik.http.routers.korhonen-redirect.middlewares=www2non-www@file,http2https@file",
|
||||
"traefik.http.routers.korhonen.entrypoints=https",
|
||||
"traefik.http.routers.korhonen.middlewares=secHeaders@file,www2non-www@file,compress@file",
|
||||
"traefik.http.routers.korhonen.rule=Host(`korhonen.cc`) || Host(`www.korhonen.cc`)",
|
||||
"traefik.http.routers.korhonen.service=korhonen",
|
||||
"traefik.http.services.korhonen.loadbalancer.server.port=80",
|
||||
]
|
||||
|
||||
[networks]
|
||||
|
||||
[networks.proxy]
|
||||
external = true
|
@ -1,30 +0,0 @@
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name localhost;
|
||||
|
||||
location / {
|
||||
root /korhonen.cc;
|
||||
index index.html;
|
||||
|
||||
location ~* \.(?:css|js|jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ {
|
||||
expires 1M;
|
||||
access_log off;
|
||||
add_header Cache-Control "public";
|
||||
}
|
||||
|
||||
location /fi {
|
||||
error_page 404 /fi/404.html;
|
||||
}
|
||||
}
|
||||
|
||||
# Use hugo 404 page
|
||||
error_page 404 /404.html;
|
||||
|
||||
# Redirect 5xx to standard error pages
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
}
|
||||
|
@ -1,24 +0,0 @@
|
||||
[services]
|
||||
|
||||
[services.remotely]
|
||||
image = "translucency/remotely"
|
||||
container_name = "remotely"
|
||||
networks = ["proxy"]
|
||||
volumes = ["/docker/remotely:/remotely-data"]
|
||||
labels = [
|
||||
"traefik.enable=true",
|
||||
"traefik.docker.network=proxy",
|
||||
"traefik.http.routers.remotely-redirect.entrypoints=http",
|
||||
"traefik.http.routers.remotely-redirect.rule=Host(`remotely.korhonen.cc`)",
|
||||
"traefik.http.routers.remotely-redirect.middlewares=http2https@file",
|
||||
"traefik.http.routers.remotely.entrypoints=https",
|
||||
"traefik.http.routers.remotely.middlewares=secHeaders@file,compress@file",
|
||||
"traefik.http.routers.remotely.rule=Host(`remotely.korhonen.cc`)",
|
||||
"traefik.http.routers.remotely.service=remotely",
|
||||
"traefik.http.services.remotely.loadbalancer.server.port=5000",
|
||||
]
|
||||
|
||||
[networks]
|
||||
|
||||
[networks.proxy]
|
||||
external = true
|
@ -1,21 +0,0 @@
|
||||
[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
|
@ -1,15 +0,0 @@
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
root /wkd;
|
||||
|
||||
location /.well-known/openpgpkey/korhonen.cc/hu/ {
|
||||
default_type "application/octet-stream";
|
||||
add_header Access-Control-Allow-Origin * always;
|
||||
}
|
||||
|
||||
location / {
|
||||
return 301 https://keyoxide.org/wkd/marko%40korhonen.cc;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue