Hello guys.i have installed nginx and now i want to use n8n as a subfolder in it.
I am running on linux 20.04 and using Docker. the browser loads the page ( site.com/n8n), the title of the page is n8n, but the page is white blank. shows nothing.
here are my conf files :
docker :
docker run -d \
--name n8n \
--restart=always \
-e WEBHOOK_URL=https://site.com/n8n/ \
-e N8N_HOST=site.com/n8n/ \
-e VUE_APP_URL_BASE_API=https://site.com/n8n/ \
-e N8N_PROTOCOL=https \
-e N8N_PORT=5678 \
-p 127.0.0.1:5678:5678 \
n8nio/n8n
and nginx .conf:
location /n8n/ {
proxy_pass http://127.0.0.1:5678;
proxy_http_version 1.1;
proxy_set_header Connection '';
proxy_buffering off;
proxy_cache off;
chunked_transfer_encoding off;
auth_basic "What's the password?";
auth_basic_user_file /etc/htpasswd;
}
thank you.