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