Projet

Général

Profil

Télécharger (3,03 ko) Statistiques
| Branche: | Tag: | Révision:

mandayejs / README @ 99d9ade2

1
MandayeJS
2
=========
3

    
4

    
5
Apache Configuration
6
--------------------
7

    
8
  <VirtualHost _default_:443>
9
    ServerAdmin webmaster@localhost
10
    ServerName dev.entrouvert.org.127.0.0.1.xip.io
11
    DocumentRoot /var/www/
12
    SSLEngine On
13
    SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
14
    SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
15

    
16
    CustomLog /var/log/apache2/mandayejs-access.log combined
17
    ErrorLog /var/log/apache2/mandayejs-error.log
18

    
19
    SSLProxyEngine on
20
    ProxyPreserveHost On
21
    SSLProxyVerify none
22
    SSLProxyCheckPeerCN off
23
    SSLProxyCheckPeerName off
24

    
25
    ProxyPass /_mandaye/ http://localhost:8000/_mandaye/
26
    ProxyPassReverse /_mandaye/ http://localhost:8000/_mandaye/
27

    
28
    RequestHeader unset Accept-Encoding
29
    ProxyPass /_mandaye !
30
    ProxyPass / https://dev.entrouvert.org/
31
    ProxyPassReverse / https://dev.entrouvert.org/
32

    
33
    ExtFilterDefine fixtext mode=output intype=text/html \
34
       cmd="/bin/sed -e '\$a<script type=\"text/javascript\" src=\"/_mandaye/static/mandaye.js\"></script>'"
35

    
36
    <Location />
37
      SetOutputFilter fixtext
38
    </Location>
39
    <Location /_mandaye>
40
      SetOutputFilter None
41
    </Location>
42

    
43
  </VirtualHost>
44

    
45
Example of local_settings.py
46
----------------------------
47

    
48
    SITE_DOMAIN =  'example.com'
49
    SITE_LOGIN_PATH = '/'
50
    SITE_HOME_PATH = '/profile' # Not required
51
    SITE_CA_URL = 'https://myidp/account/' # Citizen account
52
    
53
    SITE_LOCATORS = [
54
        {
55
            'id': '#username',    
56
            'label': 'Username',
57
            'name': 'username',
58
            'kind': 'string',
59
            'required': True,
60
            'help': '',
61
        },
62
        {
63
            'id': '#birth_date',
64
            'label': 'Birth date',
65
            'name': 'birth_date',
66
            'kind': 'date',
67
            'required': True,
68
            'help': 'exemple 16/06/2008'
69
        },
70
        {
71
            'id': '#password',
72
            'label': 'Password',
73
            'name': 'password',
74
            'kind': 'password',
75
            'required': True,
76
            'help': ''
77
        },
78
    ]
79

    
80
    # 
81
    SITE_STATIC_ROOT = 'example/mediatheque/'
82

    
83
    # List of javascript scripts running on every pages 
84
    # loaded in panel.html
85
    SITE_SCRIPTS = [
86
        'js/example.com.js',
87
    ]
88

    
89
    # JS Script asserting authentication through phantomjs
90
    # The authentication assertion function must be into 
91
    # a var such as :
92
    #
93
    # window.auth_success = function(){
94
    #       // your code 
95
    #    }
96
    #   
97
    SITE_AUTH_CHECKER = 'js/vincennes_auth_checker.js'
98

    
99
    # JS/CSS for the association page (/_mandaye/associate)
100
    SITE_ASSOCIATE_STATIC = {
101
        'css': 'css/example_associate.css',
102
        'js': 'js/example_associate.js',
103
    }
104

    
105
    # List of cookies to delete when dissaciating an account
106
    SITE_AUTH_COOKIE_KEYS = [
107
        'UserSessionId',
108
    ]
109
    
110
    # Mellon Settings
111
    MELLON_IDENTITY_PROVIDERS = [
112
        {
113
            'METADATA_URL': 'https://authentic.example.dev.entrouvert.org/idp/saml2/metadata'
114
        }
115
    ]
116
    
117
    MELLON_VERIFY_SSL_CERTIFICATE = False
118
 
(4-4/7)