Skip to content

Commit 52f1b6b

Browse files
committed
update netbox for authentik, ldap
1 parent cda7b1d commit 52f1b6b

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

netbox.subdomain.conf.sample

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
## Version 2021/05/18
2-
# make sure that your dns has a cname set for netbox and that your netbox container is not using a base url
1+
## Version 2023/02/05
2+
# make sure that your container is named netbox
3+
# make sure that your dns has a cname set for netbox
34
# make sure your netbox instance is using ALLOWED_HOST=netbox.domain.com (replace with your own domain)
45
# or edit both the environment variable and this conf file if using a different subdomain
56

@@ -14,23 +15,28 @@ server {
1415
client_max_body_size 0;
1516

1617
# enable for ldap auth, fill in ldap details in ldap.conf
17-
#include /config/nginx/ldap.conf;
18+
#include /config/nginx/ldap-server.conf;
1819

1920
# enable for Authelia
2021
#include /config/nginx/authelia-server.conf;
2122

23+
# enable for Authentik (requires authentik-location.conf in the location block)
24+
#include /config/nginx/authentik-server.conf;
25+
2226
location / {
2327
# enable the next two lines for http auth
2428
#auth_basic "Restricted";
2529
#auth_basic_user_file /config/nginx/.htpasswd;
2630

27-
# enable the next two lines for ldap auth
28-
#auth_request /auth;
29-
#error_page 401 =200 /ldaplogin;
31+
# enable for ldap auth (requires ldap-server.conf in the server block)
32+
#include /config/nginx/ldap-location.conf;
3033

31-
# enable for Authelia
34+
# enable for Authelia (requires authelia-server.conf in the server block)
3235
#include /config/nginx/authelia-location.conf;
3336

37+
# enable for Authentik (requires authentik-server.conf in the server block)
38+
#include /config/nginx/authentik-location.conf;
39+
3440
include /config/nginx/proxy.conf;
3541
include /config/nginx/resolver.conf;
3642
set $upstream_app netbox;

0 commit comments

Comments
 (0)