Skip to content

Commit 8e3ba50

Browse files
authored
Create n8n.subdomain.conf.sample (#370)
1 parent 9f615fe commit 8e3ba50

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

n8n.subdomain.conf.sample

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
## Version 2021/05/18
2+
# make sure that your dns has a cname set for n8n and that your n8n container is not using a base url
3+
# add `server.use-forward-headers=true` to `/config/application.properties` to ensure logs contain real source IP
4+
5+
server {
6+
listen 443 ssl;
7+
listen [::]:443 ssl;
8+
9+
server_name n8n.*;
10+
11+
include /config/nginx/ssl.conf;
12+
13+
client_max_body_size 0;
14+
15+
# enable for ldap auth, fill in ldap details in ldap.conf
16+
#include /config/nginx/ldap.conf;
17+
18+
# enable for Authelia
19+
#include /config/nginx/authelia-server.conf;
20+
21+
location / {
22+
# enable the next two lines for http auth
23+
#auth_basic "Restricted";
24+
#auth_basic_user_file /config/nginx/.htpasswd;
25+
26+
# enable the next two lines for ldap auth
27+
#auth_request /auth;
28+
#error_page 401 =200 /ldaplogin;
29+
30+
# enable for Authelia
31+
#include /config/nginx/authelia-location.conf;
32+
33+
include /config/nginx/proxy.conf;
34+
include /config/nginx/resolver.conf;
35+
set $upstream_app n8n;
36+
set $upstream_port 5678;
37+
set $upstream_proto http;
38+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
39+
40+
}
41+
}

0 commit comments

Comments
 (0)