upgraded config
This commit is contained in:
@@ -4,3 +4,6 @@ api/testimages/
|
|||||||
**/__pycache__/
|
**/__pycache__/
|
||||||
|
|
||||||
**/*.env
|
**/*.env
|
||||||
|
caddy/data/*
|
||||||
|
!caddy/data/.gitkeep
|
||||||
|
caddy/config/
|
||||||
|
|||||||
+25
-12
@@ -1,23 +1,36 @@
|
|||||||
|
{
|
||||||
|
email koro.no.omo@gmail.com
|
||||||
|
}
|
||||||
|
|
||||||
|
(common) {
|
||||||
|
encode zstd gzip
|
||||||
|
header {
|
||||||
|
Strict-Transport-Security "max-age=31536000; includeSubDomains"
|
||||||
|
X-Content-Type-Options "nosniff"
|
||||||
|
Referrer-Policy "strict-origin-when-cross-origin"
|
||||||
|
-Server
|
||||||
|
}
|
||||||
|
log
|
||||||
|
}
|
||||||
|
|
||||||
|
www.marvinkrausser.com {
|
||||||
|
redir https://marvinkrausser.com{uri} permanent
|
||||||
|
}
|
||||||
|
|
||||||
marvinkrausser.com {
|
marvinkrausser.com {
|
||||||
|
import common
|
||||||
reverse_proxy cnn_website:8080
|
reverse_proxy cnn_website:8080
|
||||||
}
|
}
|
||||||
|
|
||||||
api.marvinkrausser.com {
|
api.marvinkrausser.com {
|
||||||
|
import common
|
||||||
|
request_body {
|
||||||
|
max_size 10MB
|
||||||
|
}
|
||||||
reverse_proxy cnn_api:8000
|
reverse_proxy cnn_api:8000
|
||||||
}
|
}
|
||||||
|
|
||||||
portfolio.marvinkrausser.com {
|
portfolio.marvinkrausser.com {
|
||||||
reverse_proxy portfolio_website:8081
|
import common
|
||||||
}
|
|
||||||
|
|
||||||
http://localhost:8080 {
|
|
||||||
reverse_proxy cnn_website:8080
|
|
||||||
}
|
|
||||||
|
|
||||||
http://localhost:8000 {
|
|
||||||
reverse_proxy cnn_api:8000
|
|
||||||
}
|
|
||||||
|
|
||||||
http://localhost:8081 {
|
|
||||||
reverse_proxy portfolio_website:8081
|
reverse_proxy portfolio_website:8081
|
||||||
}
|
}
|
||||||
@@ -9,6 +9,7 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ./caddy/data:/data/caddy
|
- ./caddy/data:/data/caddy
|
||||||
|
- ./caddy/config:/config/caddy
|
||||||
depends_on:
|
depends_on:
|
||||||
- cnn_api
|
- cnn_api
|
||||||
- cnn_website
|
- cnn_website
|
||||||
|
|||||||
Reference in New Issue
Block a user