source: darkpeak-services/roles/ttrss/templates/apache.incl.conf.j2 @ eaf3af2b

ansiblekeycloakmatrixpleroma
Last change on this file since eaf3af2b was eaf3af2b, checked in by Mat Booth <mat.booth@…>, 2 years ago

apache: Provide a way to generate SAML2 metadata automatically

  • Property mode set to 100644
File size: 783 bytes
Line 
1<Location />
2        AuthType Mellon
3        MellonEnable "auth"
4        Require valid-user
5
6        # SP metadata
7        MellonSPPrivateKeyFile /etc/apache2/mellon/{{ domain }}.key
8        MellonSPCertFile       /etc/apache2/mellon/{{ domain }}.cert
9        MellonSPMetadataFile   /etc/apache2/mellon/{{ domain }}.xml
10
11        # IdP metadata
12        MellonIdPMetadataFile /etc/ipsilon/saml2/metadata.xml
13
14        # SAML2 attribute to environment variable mapping
15        MellonUser uid
16        MellonSetEnvNoPrefix "HTTP_USER_NAME" fullname
17        MellonSetEnvNoPrefix "HTTP_USER_MAIL" mail
18</Location>
19
20<Location /config.php>
21        Require all denied
22</Location>
23
24<LocationMatch "^/.*\.php(/.*)?$">
25        ProxyPassMatch unix:/var/run/php/{{ service_name }}.sock|fcgi://localhost{{ web_root }}
26</LocationMatch>
27
28<Directory "{{ web_root }}/cache">
29        Require all denied
30</Directory>
31
Note: See TracBrowser for help on using the repository browser.