server_config/caddy/caddy/Caddyfile

25 lines
391 B
Caddyfile

localhost:80,
cohabit.fr {
# Website entry point
encode zstd gzip
reverse_proxy 127.0.0.1:8000
}
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
}