File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments