server_config/caddy/caddy/Caddyfile

32 lines
500 B
Caddyfile

localhost:80,
cohabit.fr {
# Website entry point
encode zstd gzip
reverse_proxy 127.0.0.1:6060
}
www.cohabit.fr {
# Redirect "www" subdomain to main website entry point
redir https://cohabit.fr{uri} permanent
}
git.cohabit.fr {
# Forgejo instance for cohabit
reverse_proxy 127.0.0.1:10001
}
projets.cohabit.fr {
# Redmine instance for cohabit
reverse_proxy 127.0.0.1:33037
}
*.portfolio.cohabit.fr {
# Portfolio server subdomains
encode zstd gzip
reverse_proxy 127.0.0.1:6363
}