Skip to content

Commit 4d8455f

Browse files
authored
add api location
1 parent bc0b592 commit 4d8455f

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

kimai.subdomain.conf.sample

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,27 @@ server {
4444

4545
}
4646

47+
location ~ (/kimai)?/api {
48+
# enable the next two lines for http auth
49+
#auth_basic "Restricted";
50+
#auth_basic_user_file /config/nginx/.htpasswd;
51+
52+
# enable for ldap auth (requires ldap-server.conf in the server block)
53+
#include /config/nginx/ldap-location.conf;
54+
55+
# enable for Authelia (requires authelia-server.conf in the server block)
56+
#include /config/nginx/authelia-location.conf;
57+
58+
# enable for Authentik (requires authentik-server.conf in the server block)
59+
#include /config/nginx/authentik-location.conf;
60+
61+
include /config/nginx/proxy.conf;
62+
include /config/nginx/resolver.conf;
63+
set $upstream_app kimai;
64+
set $upstream_port 80;
65+
set $upstream_proto http;
66+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
67+
68+
}
69+
4770
}

0 commit comments

Comments
 (0)