diff --git a/docker/api/default.conf b/docker/api/default.conf
index 2006d21..aadefe4 100644
--- a/docker/api/default.conf
+++ b/docker/api/default.conf
@@ -81,6 +81,15 @@ server {
access_log off;
}
+ location /header/html/sso {
+ alias /api/api/static/templates/header_sso.html;
+ default_type text/html;
+ index header_sso.html
+ expires 1m;
+ log_not_found off;
+ access_log off;
+ }
+
location / {
try_files $uri $uri/
expires 1m;
diff --git a/docker/api/src/api/lib/menu.py b/docker/api/src/api/lib/menu.py
index 898c1ba..be5012b 100644
--- a/docker/api/src/api/lib/menu.py
+++ b/docker/api/src/api/lib/menu.py
@@ -127,6 +127,13 @@ class Menu:
with open("api/static/templates/header_admin.html", "w") as fh:
fh.write(output_from_parsed_template)
+ ## SSO app. Nginx will serve /header/html/sso -> header_sso.html
+ template = env.get_template("sso.html")
+ output_from_parsed_template = template.render(data=self.menudict)
+ print(output_from_parsed_template)
+ with open("api/static/templates/header_sso.html", "w") as fh:
+ fh.write(output_from_parsed_template)
+
def get_header(self):
return self.menudict
# with open('menu.yaml', 'w') as yml:
diff --git a/docker/api/src/api/static/_templates/sso.html b/docker/api/src/api/static/_templates/sso.html
new file mode 100644
index 0000000..f182244
--- /dev/null
+++ b/docker/api/src/api/static/_templates/sso.html
@@ -0,0 +1,313 @@
+{% block css %}
+
+{% endblock %}
+
+
+{% block pagescript %}
+
+{% endblock %}