Compare commits
9 Commits
a96d56b19c
...
3326273e21
Author | SHA1 | Date |
---|---|---|
Benjamin Bohard | 3326273e21 | |
Benjamin Bohard | 53e17b8da0 | |
Benjamin Bohard | 207dadd5cc | |
Benjamin Bohard | 994166b1fd | |
Benjamin Bohard | 20c513e4fd | |
Benjamin Bohard | 0980b3d30c | |
Benjamin Bohard | 9003ecbcb3 | |
Philippe Caseiro | 8fbafb4c70 | |
Philippe Caseiro | cc1da0773b |
|
@ -67,6 +67,7 @@
|
|||
</variable>
|
||||
<variable name='llRegisterDB' type='string' description="Base de comptes pour l'enregistrement"/>
|
||||
<variable name='llRegisterURL' type='string' description="Adresse de l'application de création de compte"/>
|
||||
<variable name='llCSPTargets' type='domain' description="Domaines vers lesquels le forumaire peut renvoyer" multi='True'/>
|
||||
</family>
|
||||
<separators>
|
||||
<separator name="managerWebName">Configuration DNS</separator>
|
||||
|
@ -132,5 +133,6 @@
|
|||
<variable name='ldapUserBaseDN'>DN de l'utilisateur de connection en lecture à l'annuaire (ex: cn=reader,o=gouv,c=fr)</variable>
|
||||
<variable name='nginxBucketSize'>server_names_hash_bucket_size Taille du hash des noms de serveur pour NGINX</variable>
|
||||
<variable name='llCheckLogins'>Affiche une case à cocher sur la mire SSO qui permet a l'utilisateur de voir l'historique de connection de son compte avant d'être redirigé vers le service demandé</variable>
|
||||
<variable name='llCSPTargets'>Liste des domaines à ajouter à la directive form-action.</variable>
|
||||
</help>
|
||||
</creole>
|
||||
|
|
|
@ -39,7 +39,7 @@ server {
|
|||
|
||||
error_page 403 404 502 503 504 /nginx.html;
|
||||
location = /nginx.html{
|
||||
root /usr/share/nginx/www;
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
|
||||
location = /reload {
|
||||
|
|
|
@ -20,7 +20,7 @@ server {
|
|||
|
||||
error_page 403 404 502 503 504 /nginx.html;
|
||||
location = /nginx.html{
|
||||
root /usr/share/nginx/www;
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
|
||||
root /usr/share/lemonldap-ng/manager/htdocs/;
|
||||
|
|
|
@ -4,6 +4,9 @@
|
|||
# default "";
|
||||
# ~/CN=(?<CN>[^/]+) $CN;
|
||||
#}
|
||||
%set %%webDomain = %%authWebName.split('.',1)[1]
|
||||
%set %%CSPTargets = %%custom_join(['http://*.{0} https://*.{0}'.format(d) for d in set([%%webDomain] + %%getVar('llCSPTargets'))], ' ')
|
||||
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
|
@ -40,6 +43,8 @@ server {
|
|||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_split_path_info ^(.*\.psgi)(/.*)$;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
fastcgi_hide_header Content-Security-Policy;
|
||||
add_header Content-Security-Policy "default-src 'self'; form-action 'self' %%CSPTargets; object-src 'none'";
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -50,6 +50,7 @@ server {
|
|||
##################################
|
||||
auth_request /lmauth;
|
||||
auth_request_set $lmremote_user $upstream_http_lm_remote_user;
|
||||
auth_request_set $lmremote_custom $upstream_http_lm_remote_custom;
|
||||
auth_request_set $lmlocation $upstream_http_location;
|
||||
# If CDA is used, uncomment this
|
||||
#auth_request_set $cookie_value $upstream_http_set_cookie;
|
||||
|
|
Loading…
Reference in New Issue