diff --git a/docker/nginx/conf.d/langbot.conf.template b/docker/nginx/conf.d/langbot.conf.template index d123bf7bab..37667f8674 100644 --- a/docker/nginx/conf.d/langbot.conf.template +++ b/docker/nginx/conf.d/langbot.conf.template @@ -1,6 +1,5 @@ # Configuration for langbot.lefeng.school subdomain -# HTTP server for langbot.lefeng.school server { listen ${NGINX_PORT}; server_name langbot.${NGINX_SERVER_NAME}; @@ -11,33 +10,21 @@ server { return 200 'KiDk4c0uzgf4zc8l'; } - # ACME challenge location - ${ACME_CHALLENGE_LOCATION} - - # Serve langbot on HTTP temporarily for certificate generation + # Main langbot service location / { proxy_pass http://host.docker.internal:5300; include proxy.conf; } + # Callback endpoint location /callback { proxy_pass http://host.docker.internal:2290; include proxy.conf; } -} - -# HTTPS server (will be added after certificate is obtained) -server { - ${HTTPS_CONFIG} - server_name langbot.${NGINX_SERVER_NAME}; - location / { - proxy_pass http://host.docker.internal:5300; - include proxy.conf; - } + # placeholder for acme challenge location + ${ACME_CHALLENGE_LOCATION} - location /callback { - proxy_pass http://host.docker.internal:2290; - include proxy.conf; - } + # placeholder for https config defined in https.conf.template + ${HTTPS_CONFIG} } \ No newline at end of file