- Changed backend port from 809 to 901 (9xx range for backends) - Updated docker-compose.yml to expose backend on port 901 - Created new Caddyfile with files.mad-lawsuit.org subdomain - Simplified mad-lawsuit.org to only proxy to frontend (port 806) - Updated frontend API proxy to use https://files.mad-lawsuit.org - Updated backend CORS to allow both mad-lawsuit.org and files.mad-lawsuit.org - This fixes PDF download reliability issues by providing direct backend access
101 lines
1.9 KiB
Caddyfile
101 lines
1.9 KiB
Caddyfile
{
|
|
email chris@sigd.net
|
|
}
|
|
|
|
# DeafMissoula.org configuration
|
|
deafmissoula.org {
|
|
reverse_proxy 172.18.0.1:801
|
|
}
|
|
|
|
# www.deafmissoula.org - redirect to main domain
|
|
www.deafmissoula.org {
|
|
redir https://deafmissoula.org{uri} permanent
|
|
}
|
|
|
|
# ChrisHaulmark.com configuration
|
|
chrishaulmark.com {
|
|
reverse_proxy 172.18.0.1:803
|
|
}
|
|
|
|
# www.chrishaulmark.com - redirect to main domain
|
|
www.chrishaulmark.com {
|
|
redir https://chrishaulmark.com{uri} permanent
|
|
}
|
|
|
|
# MAD-Lawsuit.org configuration - Frontend only
|
|
mad-lawsuit.org {
|
|
reverse_proxy 172.18.0.1:806
|
|
}
|
|
|
|
# www.mad-lawsuit.org - redirect to main domain
|
|
www.mad-lawsuit.org {
|
|
redir https://mad-lawsuit.org{uri} permanent
|
|
}
|
|
|
|
# MAD-Lawsuit Backend API - Dedicated subdomain for file downloads and API
|
|
files.mad-lawsuit.org {
|
|
reverse_proxy 172.18.0.1:901
|
|
}
|
|
|
|
# Deaf Summit Website - deafsummit.org configuration
|
|
deafsummit.org {
|
|
# Route API requests to backend
|
|
handle /api/* {
|
|
reverse_proxy 172.18.0.1:808
|
|
}
|
|
|
|
# Route everything else to frontend
|
|
handle {
|
|
reverse_proxy 172.18.0.1:807
|
|
}
|
|
}
|
|
|
|
# www.deafsummit.org - redirect to main domain
|
|
www.deafsummit.org {
|
|
redir https://deafsummit.org{uri} permanent
|
|
}
|
|
|
|
# Direct IP access
|
|
:80 {
|
|
reverse_proxy 172.18.0.1:801
|
|
}
|
|
|
|
# FinLion.com configuration
|
|
finlion.com {
|
|
reverse_proxy 172.18.0.1:805
|
|
}
|
|
|
|
# www.finlion.com - redirect to main domain
|
|
www.finlion.com {
|
|
redir https://finlion.com{uri} permanent
|
|
}
|
|
|
|
# FinLion.org configuration
|
|
finlion.org {
|
|
reverse_proxy 172.18.0.1:805
|
|
}
|
|
|
|
# www.finlion.org - redirect to main domain
|
|
www.finlion.org {
|
|
redir https://finlion.org{uri} permanent
|
|
}
|
|
|
|
# FinLion.net configuration
|
|
finlion.net {
|
|
reverse_proxy 172.18.0.1:805
|
|
}
|
|
|
|
# www.finlion.net - redirect to main domain
|
|
www.finlion.net {
|
|
redir https://finlion.net{uri} permanent
|
|
}
|
|
|
|
# DeafGain.org configuration
|
|
deafgain.org {
|
|
reverse_proxy 172.18.0.1:804
|
|
}
|
|
|
|
# www.deafgain.org - redirect to main domain
|
|
www.deafgain.org {
|
|
redir https://deafgain.org{uri} permanent
|
|
}
|