Files
2025-08-09 09:24:29 +02:00

40 lines
997 B
Caddyfile

# Redirect HTTP to HTTPS for Kalender
http://kalender.reijnst.se {
redir https://kalender.reijnst.se{uri} permanent
}
# HTTPS configuration for Nextcloud
kalender.reijnst.se {
reverse_proxy 192.168.50.55:8080
# Automatically enable HTTPS with Let's Encrypt
tls Johnny.Reijnst@gmail.com
# Forward necessary headers for the reverse proxy
header {
X-Real-IP {remote}
X-Forwarded-For {remote}
X-Forwarded-Proto {scheme}
}
}
# Server configuration for server.reijnst.se (if required)
server.reijnst.se {
reverse_proxy 192.168.50.55:8000
# Automatically enable HTTPS with Let's Encrypt
tls Johnny.Reijnst@gmail.com
}
# Redirect HTTP to HTTPS for lekstugan
http://lekstugan.reijnst.se {
redir https://lekstugan.reijnst.se{uri} permanent
}
# HTTPS configuration for lekstugan
http://lekstugan.reijnst.se {
reverse_proxy 192.168.50.55:9120
# Automatically enable HTTPS with Let's Encrypt
tls Johnny.Reijnst@gmail.com
}