Projet

Général

Profil

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

mandayejs / README @ a9a12993

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
    # Secret Key used for the encryption/decryption
49
    # Must be 16, 32 or 64 bytes long
50
    SECRET_KEY = 'whatever you want but keep it secret'
51

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

    
84
    # 
85
    SITE_STATIC_ROOT = 'example/mediatheque/'
86

    
87
    # List of javascript scripts running on every pages 
88
    # loaded in panel.html
89
    SITE_SCRIPTS = [
90
        'js/example.com.js',
91
    ]
92

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

    
103
    # JS/CSS for the association page (/_mandaye/associate)
104
    SITE_ASSOCIATE_STATIC = {
105
        'css': 'css/example_associate.css',
106
        'js': 'js/example_associate.js',
107
    }
108

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