Add volumes

This commit is contained in:
Mo 2022-08-05 14:03:30 +02:00
parent d6a4e6a462
commit 1372ddb951
6 changed files with 91 additions and 0 deletions

0
.gitignore vendored Normal file
View file

0
.rsyncignore Normal file
View file

View file

@ -0,0 +1,12 @@
server {
listen 80;
server_name advlabdb.mo8it.xyz;
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://advlabdb;
}
}

View file

@ -0,0 +1,11 @@
server {
listen 80;
server_name xueyue-li.art www.xueyue-li.art;
location / {
root /volumes/sites/xueyue-li.art;
index index.html;
}
error_page 404 /404.html;
}

View file

@ -0,0 +1,32 @@
---
http:
routers:
to_dudu_hugo:
rule: Host(`xueyue-li.art`) || Host(`www.xueyue-li.art`)
service: dudu_hugo
tls:
certResolver: le
to_advlabdb:
rule: Host(`advlabdb.mo8it.xyz`)
service: advlabdb
tls:
certResolver: le
to_gitea:
rule: Host(`git.mo8it.xyz`)
service: gitea
tls:
certResolver: le
services:
dudu_hugo:
loadBalancer:
servers:
- url: http://nginx
advlabdb:
loadBalancer:
servers:
- url: http://nginx
gitea:
loadBalancer:
servers:
- url: http://gitea:3000

View file

@ -0,0 +1,36 @@
---
global:
checkNewVersion: false
sendAnonymousUsage: true
log:
filePath: /volumes/logs/traefik.log
level: ERROR
entryPoints:
web:
address: :80
http:
redirections:
entryPoint:
to: websecure
scheme: https
websecure:
address: :443
certificatesResolvers:
le:
acme:
email: mo8it@proton.me
storage: /volumes/certs/acme.json
# caServer: https://acme-staging-v02.api.letsencrypt.org/directory
tlsChallenge: {}
accessLog:
filePath: /volumes/logs/access.log
bufferingSize: 100
providers:
file:
filename: /etc/traefik/dynamic.yml