use Wants dependency on Apache
This commit is contained in:
parent
c4f6ffce92
commit
af865567df
|
@ -13,9 +13,11 @@ Make sure to renew the cert in ten years.
|
||||||
Add the following snippet to /etc/apache2/sites-real/csc (and make sure mod_proxy_fcgi is enabled):
|
Add the following snippet to /etc/apache2/sites-real/csc (and make sure mod_proxy_fcgi is enabled):
|
||||||
```
|
```
|
||||||
<Location /keycloak/saml/ >
|
<Location /keycloak/saml/ >
|
||||||
|
SetHandler "proxy:unix:/run/saml-passthrough/server.sock|fcgi://localhost"
|
||||||
|
</Location>
|
||||||
|
<Location /keycloak/saml/sso >
|
||||||
AuthType Mellon
|
AuthType Mellon
|
||||||
MellonEnable auth
|
MellonEnable auth
|
||||||
Require valid-user
|
Require valid-user
|
||||||
SetHandler "proxy:unix:/run/saml-passthrough/server.sock|fcgi://localhost"
|
|
||||||
</Location>
|
</Location>
|
||||||
```
|
```
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=SAML passthrough for Keycloak
|
Description=SAML passthrough for Keycloak
|
||||||
Documentation=https://git.csclub.uwaterloo.ca/merenber/saml-passthrough
|
Documentation=https://git.csclub.uwaterloo.ca/merenber/saml-passthrough
|
||||||
Requires=apache2.service
|
Wants=apache2.service
|
||||||
After=apache2.service
|
After=apache2.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
@ -11,6 +11,8 @@ RuntimeDirectory=saml-passthrough
|
||||||
DynamicUser=yes
|
DynamicUser=yes
|
||||||
LoadCredential=idp.key:/srv/saml-passthrough/idp.key
|
LoadCredential=idp.key:/srv/saml-passthrough/idp.key
|
||||||
ExecStart=/srv/saml-passthrough/saml-passthrough -k "${CREDENTIALS_DIRECTORY}/idp.key"
|
ExecStart=/srv/saml-passthrough/saml-passthrough -k "${CREDENTIALS_DIRECTORY}/idp.key"
|
||||||
|
RestartSec=5
|
||||||
|
Restart=on-failure
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Reference in New Issue