15 lines
399 B
Caddyfile
15 lines
399 B
Caddyfile
markov.elpatron.me {
|
|
# Use Let's Encrypt for SSL certificates
|
|
tls elpatron@mailbox.org
|
|
|
|
# Proxy all requests to the Flask application
|
|
reverse_proxy markov-economics:5000
|
|
|
|
# Handle WebSocket upgrade requests specifically
|
|
@websockets {
|
|
header Connection *Upgrade*
|
|
header Upgrade websocket
|
|
}
|
|
|
|
reverse_proxy @websockets markov-economics:5000
|
|
} |