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 ...@@ -29,6 +29,8 @@ if [ ! -f /etc/apache2/saml2/idp.xml ]; then
curl $IDP_METADATA > /etc/apache2/saml2/idp.xml curl $IDP_METADATA > /etc/apache2/saml2/idp.xml
fi fi
sed -i "/{{HOST}}/${HOST}/" /etc/apache2/conf-enabled/mod_auth_mellon.conf
# Create mod_auth_mellon service provider config # Create mod_auth_mellon service provider config
if [ ! -f /etc/apache2/saml2/sp.xml ]; then if [ ! -f /etc/apache2/saml2/sp.xml ]; then
pushd /etc/apache2/saml2 pushd /etc/apache2/saml2
...@@ -37,6 +39,7 @@ if [ ! -f /etc/apache2/saml2/sp.xml ]; then ...@@ -37,6 +39,7 @@ if [ ! -f /etc/apache2/saml2/sp.xml ]; then
mv http*.xml sp.xml mv http*.xml sp.xml
mv http*.key sp.key mv http*.key sp.key
mv http*.cert sp.cert mv http*.cert sp.cert
chmod 644 sp.key
popd popd
fi fi
......
ServerName https://{{HOST}}
<Location / > <Location / >
MellonEnable info MellonEnable info
MellonEndpointPath /mellon MellonEndpointPath /mellon
...@@ -5,6 +7,7 @@ ...@@ -5,6 +7,7 @@
MellonSPCertFile /etc/apache2/saml2/sp.cert MellonSPCertFile /etc/apache2/saml2/sp.cert
MellonSPMetadataFile /etc/apache2/saml2/sp.xml MellonSPMetadataFile /etc/apache2/saml2/sp.xml
MellonIdPMetadataFile /etc/apache2/saml2/idp.xml MellonIdPMetadataFile /etc/apache2/saml2/idp.xml
MellonSignatureMethod rsa-sha256
</Location> </Location>
<Location /admin > <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