Compare commits
98 Commits
d626b19e4a
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 56b7d065b8 | |||
| 96348c17ce | |||
| 02b721ff51 | |||
| 3a628fe676 | |||
| 93535750a2 | |||
| c949457f4c | |||
| 5292e2728f | |||
| 8c1770882b | |||
| 6837cf4f17 | |||
| 5c61a74e3d | |||
| ffe6bdd0f4 | |||
| f391e35221 | |||
| 9f88b58f96 | |||
| 9d32e0962e | |||
| 4d3ca7bb14 | |||
| 27f929dfbc | |||
| be0642c389 | |||
| 69af529410 | |||
| c4d8e980da | |||
| 676e0a91b6 | |||
| 8efc6bfcd2 | |||
| 38e327c847 | |||
| 2ee5fc8842 | |||
| 0ef8eb0938 | |||
| de57180976 | |||
| 6cd4371829 | |||
| 4e2369f35c | |||
| c6ee22ef12 | |||
| 6f289424e3 | |||
| 8ef9420396 | |||
| 0794242198 | |||
| 0d6bf386d0 | |||
| 200567f23c | |||
| aa75224d03 | |||
| 83ae97e627 | |||
| 7f9042e612 | |||
| d37109a696 | |||
| afdd3d903a | |||
| 28741de633 | |||
| 38b425e1d8 | |||
| dfddc38c89 | |||
| fe9651409e | |||
| 286619fc62 | |||
| 1bb297f0cf | |||
| d0af616b8d | |||
| 9acc06646a | |||
| c70f031dff | |||
| 7e3fac6907 | |||
| c24049d3fb | |||
| f340cc0a43 | |||
| 9dd22589de | |||
| 4a5222a781 | |||
| f79dde2d1d | |||
| 1b899985a1 | |||
| f0096bc27f | |||
| 39d50b7d3b | |||
| 824fbbe3eb | |||
| 1968faab99 | |||
| 3d961d6536 | |||
| 5469a01893 | |||
| 1bf893f683 | |||
| a2c4ac8685 | |||
| 08489162bf | |||
| 92afa46d5d | |||
| 0f29d06653 | |||
| a22a30ac3b | |||
| 9b490a9233 | |||
| bf5569522a | |||
| 3c84604de8 | |||
| 38a1a08c2a | |||
| ee26c3dc0a | |||
| 6331391f1c | |||
| ee3e5952ac | |||
| 541059c0c4 | |||
| ac68074178 | |||
| ce0b44ac9c | |||
| 3553cdcf59 | |||
| 14f6b30444 | |||
| 96f3ccbc1a | |||
| 669ef1b220 | |||
| ee235d5863 | |||
| dde2134d87 | |||
| 57ec03cebe | |||
| 082c465985 | |||
| 8b5b984d22 | |||
| 212fa09534 | |||
| f66016633e | |||
| b10f49a283 | |||
| 379cc87257 | |||
| ceaf82d5da | |||
| dfadc74b2d | |||
| 7692aef4fc | |||
| 973be97c70 | |||
| bd38b9a5f2 | |||
| e96631bafd | |||
| 77ec9800aa | |||
| 4c34709526 | |||
| b8e3cb6e1f |
@@ -4,7 +4,7 @@ services:
|
||||
container_name: bizmatch-app-prod # Neu: Unterscheide Namen
|
||||
working_dir: /app
|
||||
volumes:
|
||||
- ~/git/bizmatch-project-prod/bizmatch-server:/app # Verwende Prod-Checkout
|
||||
- /home/aknuth/git/bizmatch-project-prod/bizmatch-server:/app # Verwende Prod-Checkout
|
||||
ports:
|
||||
- "3001:3000" # Neu: Host-Port 3001, Container-Port bleibt 3000
|
||||
env_file:
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
237
caddy/Caddyfile
237
caddy/Caddyfile
@@ -4,20 +4,6 @@
|
||||
acme_ca https://acme-v02.api.letsencrypt.org/directory
|
||||
debug
|
||||
}
|
||||
import email_autodiscover
|
||||
# ---------------------------------------------------------
|
||||
# Block A: Die dedizierten Autodiscover Domains
|
||||
# ---------------------------------------------------------
|
||||
autodiscover.bayarea-cc.com, autodiscover.bizmatch.net,
|
||||
autodiscover.ruehrgedoens.de, autoconfig.ruehrgedoens.de,
|
||||
autoconfig.bayarea-cc.com, autoconfig.bizmatch.net {
|
||||
|
||||
# Hier rufen wir das Snippet auf
|
||||
import email_settings
|
||||
|
||||
# Fallback für Aufrufe auf Root dieser Subdomains
|
||||
respond "Autodiscover Service Online" 200
|
||||
}
|
||||
|
||||
# Prod: Neue Domains
|
||||
www.bizmatch.net {
|
||||
@@ -25,13 +11,16 @@ www.bizmatch.net {
|
||||
root * /home/aknuth/git/bizmatch-project/bizmatch-server # Prod-Ordner
|
||||
file_server
|
||||
}
|
||||
#handle {
|
||||
# root * /home/aknuth/git/bizmatch-project-prod/bizmatch/dist/bizmatch/browser # Neuer Prod-Dist-Ordner
|
||||
# try_files {path} {path}/ /index.html
|
||||
# file_server
|
||||
#}
|
||||
# Statische Dateien (CSS, JS, Bilder) – lange cachen, da sich der Name bei Änderungen ändert
|
||||
header /assets/* Cache-Control "public, max-age=31536000, immutable"
|
||||
header /*.css Cache-Control "public, max-age=31536000, immutable"
|
||||
header /*.js Cache-Control "public, max-age=31536000, immutable"
|
||||
|
||||
# Die index.html und API-Antworten – NIEMALS cachen
|
||||
header /index.html Cache-Control "no-cache, no-store, must-revalidate"
|
||||
|
||||
handle {
|
||||
reverse_proxy localhost:4200
|
||||
reverse_proxy host.docker.internal:4200
|
||||
}
|
||||
log {
|
||||
output file /var/log/caddy/access.prod.log # Separate Logs
|
||||
@@ -40,7 +29,6 @@ www.bizmatch.net {
|
||||
}
|
||||
bizmatch.net {
|
||||
redir https://www.bizmatch.net{uri} permanent
|
||||
import email_settings
|
||||
}
|
||||
www.qrmaster.net {
|
||||
handle {
|
||||
@@ -55,110 +43,20 @@ www.qrmaster.net {
|
||||
qrmaster.net {
|
||||
redir https://www.qrmaster.net{uri} permanent
|
||||
}
|
||||
bayarea-cc.com {
|
||||
# TLS-Direktive entfernen, falls Cloudflare die Verbindung terminiert
|
||||
# tls {
|
||||
# dns cloudflare {env.CLOUDFLARE_API_TOKEN}
|
||||
# }
|
||||
|
||||
handle /api {
|
||||
reverse_proxy host.docker.internal:3001
|
||||
}
|
||||
handle {
|
||||
root * /app
|
||||
try_files {path} /index.html
|
||||
file_server
|
||||
}
|
||||
log {
|
||||
output stderr
|
||||
format console
|
||||
}
|
||||
encode gzip
|
||||
import email_settings
|
||||
}
|
||||
www.bayarea-cc.com {
|
||||
redir https://bayarea-cc.com{uri} permanent
|
||||
}
|
||||
setup.bayarea-cc.com {
|
||||
# Wir setzen das Root-Verzeichnis auf den neuen Pfad im Container
|
||||
root * /var/www/email-setup
|
||||
|
||||
# Webserver-Standardverhalten
|
||||
file_server
|
||||
|
||||
# Wenn jemand nur die Domain aufruft, zeige setup.html
|
||||
try_files {path} /setup.html
|
||||
}
|
||||
cielectrical.bayarea-cc.com {
|
||||
# wenn du API innerhalb von Next bedienst, weiterleiten an den Next Prozess
|
||||
handle {
|
||||
reverse_proxy host.docker.internal:3000
|
||||
}
|
||||
log {
|
||||
output file /var/log/caddy/cielectrical.log
|
||||
format console
|
||||
}
|
||||
encode gzip
|
||||
}
|
||||
hamptonbrown.bayarea-cc.com {
|
||||
# wenn du API innerhalb von Next bedienst, weiterleiten an den Next Prozess
|
||||
www.innungsapp.com {
|
||||
handle {
|
||||
reverse_proxy host.docker.internal:3010
|
||||
}
|
||||
log {
|
||||
output file /var/log/caddy/hamptonbrown.log
|
||||
output file /var/log/caddy/innungsapp.log
|
||||
format console
|
||||
}
|
||||
encode gzip
|
||||
}
|
||||
nqsltd.bayarea-cc.com {
|
||||
# wenn du API innerhalb von Next bedienst, weiterleiten an den Next Prozess
|
||||
handle {
|
||||
reverse_proxy host.docker.internal:3020
|
||||
}
|
||||
log {
|
||||
output file /var/log/caddy/nqsltd.log
|
||||
format console
|
||||
}
|
||||
encode gzip
|
||||
}
|
||||
gregknoppcpa.bayarea-cc.com {
|
||||
# wenn du API innerhalb von Next bedienst, weiterleiten an den Next Prozess
|
||||
handle {
|
||||
reverse_proxy host.docker.internal:3030
|
||||
}
|
||||
log {
|
||||
output file /var/log/caddy/gregknoppcpa.log
|
||||
format console
|
||||
}
|
||||
encode gzip
|
||||
innungsapp.com {
|
||||
redir https://www.innungsapp.com{uri} permanent
|
||||
}
|
||||
|
||||
iitwelders.bayarea-cc.com {
|
||||
# wenn du API innerhalb von Next bedienst, weiterleiten an den Next Prozess
|
||||
handle {
|
||||
reverse_proxy host.docker.internal:8080
|
||||
}
|
||||
log {
|
||||
output file /var/log/caddy/iitwelders.log
|
||||
format console
|
||||
}
|
||||
encode gzip
|
||||
}
|
||||
fancytextstuff.com {
|
||||
# wenn du API innerhalb von Next bedienst, weiterleiten an den Next Prozess
|
||||
handle {
|
||||
reverse_proxy host.docker.internal:3010
|
||||
}
|
||||
log {
|
||||
output file /var/log/caddy/fancytext.log
|
||||
format console
|
||||
}
|
||||
encode gzip
|
||||
}
|
||||
www.fancytextstuff.com {
|
||||
redir https://fancytextstuff.com{uri} permanent
|
||||
}
|
||||
auth.bizmatch.net {
|
||||
reverse_proxy https://bizmatch-net.firebaseapp.com {
|
||||
header_up Host bizmatch-net.firebaseapp.com
|
||||
@@ -171,31 +69,6 @@ gitea.bizmatch.net {
|
||||
reverse_proxy gitea:3500
|
||||
}
|
||||
|
||||
dev.bizmatch.net {
|
||||
handle /pictures/* {
|
||||
root * /home/aknuth/git/bizmatch-project/bizmatch-server
|
||||
file_server
|
||||
}
|
||||
|
||||
handle {
|
||||
root * /home/aknuth/git/bizmatch-project/bizmatch/dist/bizmatch/browser
|
||||
try_files {path} {path}/ /index.html
|
||||
file_server
|
||||
}
|
||||
|
||||
log {
|
||||
output file /var/log/caddy/access.log {
|
||||
roll_size 10MB
|
||||
roll_keep 5
|
||||
roll_keep_for 48h
|
||||
}
|
||||
}
|
||||
|
||||
encode gzip
|
||||
|
||||
}
|
||||
|
||||
|
||||
api.bizmatch.net {
|
||||
reverse_proxy host.docker.internal:3001 { # Neu: Proxy auf Prod-Port 3001
|
||||
header_up X-Real-IP {http.request.header.CF-Connecting-IP}
|
||||
@@ -204,82 +77,22 @@ api.bizmatch.net {
|
||||
header_up CF-IPCountry {http.request.header.CF-IPCountry}
|
||||
}
|
||||
}
|
||||
mailsync.bizmatch.net {
|
||||
reverse_proxy host.docker.internal:5000 {
|
||||
header_up X-Real-IP {http.request.header.CF-Connecting-IP}
|
||||
header_up X-Forwarded-For {http.request.header.CF-Connecting-IP}
|
||||
header_up X-Forwarded-Proto {http.request.header.X-Forwarded-Proto}
|
||||
header_up CF-IPCountry {http.request.header.CF-IPCountry}
|
||||
}
|
||||
|
||||
greenlenspro.com {
|
||||
encode zstd gzip
|
||||
|
||||
@storage path /storage /storage/*
|
||||
handle @storage {
|
||||
uri strip_prefix /storage
|
||||
reverse_proxy minio:9000
|
||||
}
|
||||
|
||||
# Roundcube für docker-mailserver
|
||||
app.email-bayarea.com {
|
||||
reverse_proxy roundcube:80
|
||||
|
||||
log {
|
||||
output stderr
|
||||
format console
|
||||
@api path /api /api/* /auth /auth/* /v1 /v1/* /health /plants /plants/*
|
||||
handle @api {
|
||||
reverse_proxy api:3000
|
||||
}
|
||||
|
||||
encode gzip
|
||||
}
|
||||
# Roundcube für docker-mailserver
|
||||
config.email-bayarea.com {
|
||||
|
||||
root * /home/aknuth/git/config-email/frontend/dist
|
||||
try_files {path} {path}/ /index.html
|
||||
file_server
|
||||
|
||||
log {
|
||||
output file /var/log/caddy/config-email.log
|
||||
}
|
||||
|
||||
encode gzip
|
||||
}
|
||||
# Roundcube für docker-mailserver
|
||||
api.email-bayarea.com {
|
||||
reverse_proxy host.docker.internal:3002
|
||||
|
||||
log {
|
||||
output stderr
|
||||
format console
|
||||
}
|
||||
|
||||
encode gzip
|
||||
}
|
||||
annavillesda.org {
|
||||
# API requests to backend
|
||||
handle /api/* {
|
||||
reverse_proxy host.docker.internal:3070
|
||||
}
|
||||
|
||||
# Frontend static files
|
||||
handle {
|
||||
root * /home/aknuth/git/annaville-sda-site/dist
|
||||
try_files {path} {path}/ /index.html
|
||||
file_server
|
||||
reverse_proxy landing:3000
|
||||
}
|
||||
|
||||
log {
|
||||
output file /var/log/caddy/access.prod.log
|
||||
}
|
||||
|
||||
encode gzip
|
||||
}
|
||||
www.annavillesda.org {
|
||||
redir https://annavillesda.org{uri} permanent
|
||||
}
|
||||
# -----------------
|
||||
# just for certificate generation
|
||||
# -----------------
|
||||
mail.andreasknuth.de {
|
||||
reverse_proxy nginx-mailcow:8080
|
||||
}
|
||||
web.email-bayarea.com {
|
||||
reverse_proxy nginx-mailcow:8080
|
||||
}
|
||||
# Dieser Block dient nur dazu, das Zertifikat für den Mailserver zu beschaffen/erneuern.
|
||||
mail.email-srvr.com {
|
||||
respond "Mailserver Certificate Authority is running." 200
|
||||
}
|
||||
@@ -16,6 +16,7 @@ services:
|
||||
- keycloak
|
||||
- gitea
|
||||
- mail_network
|
||||
- greenlens_net
|
||||
volumes:
|
||||
- $PWD/Caddyfile:/etc/caddy/Caddyfile
|
||||
- $PWD/email_autodiscover:/etc/caddy/email_autodiscover
|
||||
@@ -44,6 +45,8 @@ networks:
|
||||
external: true
|
||||
mail_network:
|
||||
external: true
|
||||
greenlens_net:
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
caddy_data:
|
||||
|
||||
29
caddy/email-setup/autodiscover.xml
Normal file
29
caddy/email-setup/autodiscover.xml
Normal file
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">
|
||||
<Response xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a">
|
||||
<Account>
|
||||
<AccountType>email</AccountType>
|
||||
<Action>settings</Action>
|
||||
<Protocol>
|
||||
<Type>IMAP</Type>
|
||||
<Server>mail.email-srvr.com</Server>
|
||||
<Port>993</Port>
|
||||
<DomainRequired>off</DomainRequired>
|
||||
<LoginName></LoginName>
|
||||
<SPA>off</SPA>
|
||||
<SSL>on</SSL>
|
||||
<AuthRequired>on</AuthRequired>
|
||||
</Protocol>
|
||||
<Protocol>
|
||||
<Type>SMTP</Type>
|
||||
<Server>mail.email-srvr.com</Server>
|
||||
<Port>465</Port>
|
||||
<DomainRequired>off</DomainRequired>
|
||||
<LoginName></LoginName>
|
||||
<SPA>off</SPA>
|
||||
<SSL>on</SSL>
|
||||
<AuthRequired>on</AuthRequired>
|
||||
</Protocol>
|
||||
</Account>
|
||||
</Response>
|
||||
</Autodiscover>
|
||||
@@ -20,7 +20,7 @@ services:
|
||||
volumes:
|
||||
- gitea-data:/data
|
||||
#- ./gitea/gitea-ssh:/data/git/.ssh
|
||||
- /home/git/.ssh/:/data/git/.ssh
|
||||
#- /home/git/.ssh/:/data/git/.ssh
|
||||
ports:
|
||||
- "3500:3500"
|
||||
- "2222:22"
|
||||
|
||||
Reference in New Issue
Block a user