Skip to content
Snippets Groups Projects
Commit 7e7e5fd9 authored by Andrej Ramašeuski's avatar Andrej Ramašeuski
Browse files

Genewrovani ServerName v konfiguraci webserveru

parent ffdc6d52
No related branches found
No related tags found
No related merge requests found
Pipeline #100 passed
......@@ -29,6 +29,8 @@ if [ ! -f /etc/apache2/saml2/idp.xml ]; then
curl $IDP_METADATA > /etc/apache2/saml2/idp.xml
fi
sed -i "/{{HOST}}/${HOST}/" /etc/apache2/conf-enabled/mod_auth_mellon.conf
# Create mod_auth_mellon service provider config
if [ ! -f /etc/apache2/saml2/sp.xml ]; then
pushd /etc/apache2/saml2
......@@ -37,6 +39,7 @@ if [ ! -f /etc/apache2/saml2/sp.xml ]; then
mv http*.xml sp.xml
mv http*.key sp.key
mv http*.cert sp.cert
chmod 644 sp.key
popd
fi
......
ServerName https://{{HOST}}
<Location / >
MellonEnable info
MellonEndpointPath /mellon
......@@ -5,6 +7,7 @@
MellonSPCertFile /etc/apache2/saml2/sp.cert
MellonSPMetadataFile /etc/apache2/saml2/sp.xml
MellonIdPMetadataFile /etc/apache2/saml2/idp.xml
MellonSignatureMethod rsa-sha256
</Location>
<Location /admin >
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment