Compare commits
No commits in common. "53e17b8da0320a3ff897925cb04b5c46fafe8503" and "cc1da0773bc9088aea0c65a2ef89472db2862b2f" have entirely different histories.
53e17b8da0
...
cc1da0773b
|
@ -67,7 +67,6 @@
|
|||
</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>
|
||||
|
@ -133,6 +132,5 @@
|
|||
<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/html;
|
||||
root /usr/share/nginx/www;
|
||||
}
|
||||
|
||||
location = /reload {
|
||||
|
|
|
@ -20,7 +20,7 @@ server {
|
|||
|
||||
error_page 403 404 502 503 504 /nginx.html;
|
||||
location = /nginx.html{
|
||||
root /usr/share/nginx/html;
|
||||
root /usr/share/nginx/www;
|
||||
}
|
||||
|
||||
root /usr/share/lemonldap-ng/manager/htdocs/;
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
# ~/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;
|
||||
|
@ -44,7 +42,7 @@ server {
|
|||
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'";
|
||||
add_header Content-Security-Policy "default-src 'self'; form-action 'self' http://*.%%webDomain https://*.%%webDomain; object-src 'none'";
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -50,7 +50,6 @@ 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