Skip to content
Snippets Groups Projects
Commit e010368b authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Add SSO for vampir

parent 87422fc0
Branches
No related tags found
No related merge requests found
...@@ -23,6 +23,9 @@ ...@@ -23,6 +23,9 @@
- name: restart uwsgi instance sso - name: restart uwsgi instance sso
service: name="uwsgi@sso" state=restarted service: name="uwsgi@sso" state=restarted
- name: restart uwsgi instance sso-vampir
service: name="uwsgi@sso-vampir" state=restarted
- name: restart uwsgi instance migration-webapp - name: restart uwsgi instance migration-webapp
service: name="uwsgi@migration-webapp" state=restarted service: name="uwsgi@migration-webapp" state=restarted
......
location = /sso {
internal;
proxy_pass https://sso.vampir.rwth-aachen.de/backend?group=$sso_group;
proxy_pass_request_body off;
proxy_set_header Content-Length "";
proxy_set_header X-Original-URI $request_uri;
}
location @sso {
add_header Cache-Control no-store;
return 302 https://sso.vampir.rwth-aachen.de?next=https://$server_name$request_uri;
}
location @sso_logout {
add_header Cache-Control no-store;
return 302 https://sso.vampir.rwth-aachen.de/logout?next=https://$server_name$request_uri;
}
...@@ -39,7 +39,7 @@ server { ...@@ -39,7 +39,7 @@ server {
{% endfor %} {% endfor %}
{% if server.use_sso is defined and server.use_sso %} {% if server.use_sso is defined and server.use_sso %}
include /etc/nginx/snippets/sso-locations.conf; include /etc/nginx/snippets/sso-locations-{{server.sso_domain|default("fsmpi")}}.conf;
{% else %} {% else %}
{% endif %} {% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment