From f08d55736670d6b55c1e420d6832b011264f8b53 Mon Sep 17 00:00:00 2001 From: ytqh Date: Wed, 28 May 2025 21:02:44 +0800 Subject: [PATCH] Revert "update" This reverts commit 28d5697b37599564f1fa98506300d9b8dc0401cf. --- docker/nginx/conf.d/langbot.conf.template | 25 ++++++----------------- 1 file changed, 6 insertions(+), 19 deletions(-) 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