Merge lp:~dooferlad/linaro-license-protection/django-configs-debug-off into lp:~linaro-automation/linaro-license-protection/trunk

Proposed by James Tunnicliffe
Status: Rejected
Rejected by: Данило Шеган
Proposed branch: lp:~dooferlad/linaro-license-protection/django-configs-debug-off
Merge into: lp:~linaro-automation/linaro-license-protection/trunk
Diff against target: 827 lines (+759/-0) (has conflicts)
13 files modified
README (+213/-0)
apache/releases.linaro.org (+39/-0)
apache/snapshots.linaro.org (+154/-0)
apache/staging.releases.linaro.org (+39/-0)
apache/staging.snapshots.linaro.org (+154/-0)
django/settings_releases.py (+22/-0)
django/settings_snapshots.py (+22/-0)
django/settings_staging_releases.py (+20/-0)
django/settings_staging_snapshots.py (+20/-0)
wsgi/wsgi_releases.py (+19/-0)
wsgi/wsgi_snapshots.py (+19/-0)
wsgi/wsgi_staging_releases.py (+19/-0)
wsgi/wsgi_staging_snapshots.py (+19/-0)
Conflict adding file README.  Moved existing file to README.moved.
To merge this branch: bzr merge lp:~dooferlad/linaro-license-protection/django-configs-debug-off
Reviewer Review Type Date Requested Status
Данило Шеган (community) Disapprove
Review via email: mp+120411@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Данило Шеган (danilo) wrote :

You should propose against ~linaro-infrastructure/linaro-license-protection/configs :)

review: Disapprove
Revision history for this message
Данило Шеган (danilo) wrote :

Unmerged revisions

19. By James Tunnicliffe

Disabled DEBUG for production instances

18. By Данило Шеган

Move deployment steps for upload framework here as well.

17. By Данило Шеган

Fallback to "templates" dir for separate sites.

16. By Данило Шеган

Revert previous change.

15. By Данило Шеган

Clear-up system path in wsgi file.

14. By Данило Шеган

Update SSL cert file on snapshots.linaro.org.

13. By Данило Шеган

Update the SSL statement as well.

12. By Данило Шеган

Move deployment steps out of the code README and into the configs README.

11. By Данило Шеган

Set DJANGO_SETTINGS_MODULE unconditionally to avoid variable-based flakiness in mod_wsgi (for production configs as well).

10. By Данило Шеган

Set DJANGO_SETTINGS_MODULE unconditionally to avoid variable-based flakiness in mod_wsgi.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added file 'README'
--- README 1970-01-01 00:00:00 +0000
+++ README 2012-08-20 15:32:38 +0000
@@ -0,0 +1,213 @@
1Linaro License Protection configuration
2=======================================
3
4This branch contains current production configuration for
5
6 * releases.linaro.org (hosted on mombin.canonical.com)
7 * snapshots.linaro.org (mombin)
8 * staging.releases.linaro.org (kahaku.canonical.com)
9 * staging.snapshots.linaro.org (kahaku.canonical.com)
10
11
12Dependencies
13------------
14
15libapache2-mod-xsendfile >= 0.10
16libapache2-mod-python
17python-django >= 1.3.1
18python-django-openid-auth
19python-apache-openid
20
21python-apache-openid is needed until we migrate existing apache
22openid-protected directories to the new setup.
23
24
25Pushing framework on snapshots.linaro.org
26-----------------------------------------
27
28Pushing/uploading side is currently implemented as a multi-system setup:
29
30 * configuration on jenkins
31 * configuration of users on server
32
33Configuration of jenkins
34........................
35
36 * We are using Publish-over-SSH plugin for jenkins
37
38 * We perform two build (not publish, to allow for LAVA to have known URLs)
39 steps:
40
41 * publish artifacts over SSH (ends up on a private location on the server)
42
43 * call out a trigger script over SSH (to move files securely to a public
44 location)
45
46 * We use strictly "push from master" in advanced settings of publish-over-ssh
47 plugin, and keep private keys for both actions above on the master:
48
49 /home/ubuntu/snapshots-sync2/linaro-android-build-publish —
50 linaro-android-build-publish
51 /home/ubuntu/snapshots-sync2/linaro-android-build-publish-trigger —
52 linaro-android-build-publish-trigger
53
54Configuration of users on the receiving server (snapshots.l.o)
55..............................................................
56
57For the two actions above, we have two separate users for all hosts
58accessing the system (two for android-build.linaro.org and another two
59for ci.linaro.org at this time).
60
61One of the users is a sftp/push user, and another is the trigger user that
62shuffles the files around.
63
64Current users and their configurations:
65
66 * linaro-android-build-publish
67 /etc/ssh/user-authorized-keys/linaro-android-build-publish
68
69 command="/usr/lib/sftp-server",no-pty,no-port-forwarding,\
70 no-X11-forwarding,no-agent-forwarding,from="50.17.250.69" \
71 <PUBLIC-SSH-KEY-DATA>
72
73 (chrooted to /srv/snapshots.linaro.org/uploads/)
74
75 * linaro-android-build-publish-trigger:
76
77 /etc/ssh/user-authorized-keys/linaro-android-build-publish-trigger
78
79 command="/home/linaro-android-build-publish-trigger/scripts\
80 /trigger-linaro-android-build-publish.sh \
81 ${SSH_ORIGINAL_COMMAND#* }",\
82 no-pty,no-port-forwarding,no-X11-forwarding,no-agent-forwarding,
83 from="50.17.250.69" <PUBLIC-SSH-KEY-DATA>
84
85 The script being executed passes parameters to publish_to_snapshots
86 which moves files from /uploads/ into appropriate public directory:
87
88 #!/bin/sh
89 if [ "$(id -un)" != "linaro-android-build-publish-trigger" ]; then
90 echo "This script is designed to be run as linaro-android-build-publish-trigger user"
91 exit 1
92 fi
93 sudo -u linaro-android-build-publish /home/linaro-android-build-publish/linaro-license-protection/scripts/publish_to_snapshots.py "$@"
94
95 * linaro-ci-publish
96
97 Exactly the same as linaro-android-build-publish, except for the IP
98 (allowing ci.linaro.org from 50.17.200.206) and SSH key data.
99
100 * linaro-ci-publish-trigger
101
102 Like linaro-android-build-publish-trigger, with different IP
103 and SSH key data. Script lives in
104
105 /home/linaro-ci-publish-trigger/scripts/trigger-linaro-ci-publish.sh
106
107 and is of similar structure to the one for the user
108 linaro-android-build-publish-trigger.
109
110android-build.linaro.org
111........................
112
113Runs Jenkins and uses SFTP plugin to access the above two users. Private
114keys live in
115
116 /home/ubuntu/snapshots-sync2/linaro-android-build-publish —
117 linaro-android-build-publish
118 /home/ubuntu/snapshots-sync2/linaro-android-build-publish-trigger —
119 linaro-android-build-publish-trigger
120
121To ensure serialization of steps, and allow LAVA submission, these happen as
122build steps, and not as publishing steps.
123
124Deployment steps
125----------------
126
127This documents our current deployment while at the same time representing
128an example production deployment.
129
1301. Install the dependencies
131 (see the "Dependencies" section)
132
1332. Get the code
134
135 mkdir -p /srv/shared-branches
136 cd /srv/shared-branches
137 bzr branch lp:linaro-license-protection
138
139 (we are actually using http URLs since lp: defaults to bzr+ssh which
140 doesn't work on system accounts)
141
1423. Get the configuration
143
144 Configuration files for deploying to snapshots.linaro.org,
145 releases.linaro.org, staging.snapshots.linaro.org
146 and staging.releases.linaro.org all live in
147
148 lp:linaro-license-protection/configs
149
150 We need to branch that into /srv/shared-branches as well:
151
152 cd /srv/shared-branches
153 bzr branch lp:linaro-license-protection/configs linaro-license-protection-configs
154
1554. Checkout branches for the services you want to use:
156
157 (cd /srv/staging.snapshots.linaro.org &&
158 bzr checkout /srv/shared-branches/linaro-license-protection-configs configs &&
159 bzr checkout /srv/shared-branches/linaro-license-protection)
160
161 Replace "/srv/staging.snapshots.linaro.org" with one of
162 /srv/staging.releases.linaro.org
163 /srv/snapshots.linaro.org
164 /srv/releases.linaro.org
165
166 depending on the service you are deploying.
167
168 If you use these paths, none of the config files will need updating.
169
1705. Configure apache2
171
172 Make sure mod-xsendfile and mod-python are enabled.
173 Copy appropriate
174 /srv/staging.snapshots.linaro.org/configs/apache/staging.snapshots.linaro.org
175 files to /etc/apache2/sites-available
176
177 Add appropriate NameVirtualHost directive to
178
179 /etc/apache2/sites-enabled/000-default
180
181 Run "a2ensite staging.snapshots.linaro.org".
182
183 You also need to set up SSL certificate for *snapshots.linaro.org.
184
1856. Create databases and set up static files
186
187 Make sure appropriate configs/django directory is in the PYTHONPATH
188 and set DJANGO_SETTINGS_MODULE and then run django-admin:
189
190 export PYTHONPATH=/srv/staging.snapshots.linaro.org:/srv/staging.snapshots.linaro.org/linaro-license-protection:/srv/staging.snapshots.linaro.org/configs/django
191 export DJANGO_SETTINGS_MODULE=settings_staging_snapshots
192 mkdir -p /srv/staging.snapshots.linaro.org/db
193 django-admin syncdb --noinput
194 django-admin collectstatic --noinput
195
1967. Set up a cron job to keep code updating automatically
197
198 You may want to automatically keep code up to date (mostly for staging)
199 instances.
200
201 There is
202
203 scripts/update-staging.py
204
205 which can be run from a cronjob to keep the above deployment always
206 up to date.
207
2088. Ensure license_protected_downloads/config.py contains relevant white-listed
209 IP addresses:
210
211 For releases.linaro.org:
212 * android-build.linaro.org (50.17.250.69)
213 * validation.linaro.org (213.123.120.124)
0214
=== renamed file 'README' => 'README.moved'
=== added directory 'apache'
=== added file 'apache/releases.linaro.org'
--- apache/releases.linaro.org 1970-01-01 00:00:00 +0000
+++ apache/releases.linaro.org 2012-08-20 15:32:38 +0000
@@ -0,0 +1,39 @@
1<VirtualHost 91.189.95.80:80>
2 Alias /static/ /srv/releases.linaro.org/linaro-license-protection/static/
3 DocumentRoot /srv/releases.linaro.org/www
4 ServerName releases.linaro.org
5 ServerAdmin webmaster@linaro.org
6 CustomLog /var/log/apache2/releases.linaro.org-access.log combined
7 ErrorLog /var/log/apache2/releases.linaro.org-error.log
8
9 <Directory /srv/releases.linaro.org/linaro-license-protection/static>
10 Order deny,allow
11 Allow from all
12 </Directory>
13
14 <Directory /srv/releases.linaro.org/www>
15 Order deny,allow
16 Allow from all
17 </Directory>
18
19 XSendFile on
20 XSendFilePath /srv/releases.linaro.org/www
21
22 WSGIScriptAlias / /srv/releases.linaro.org/configs/wsgi/wsgi_releases.py
23 WSGIDaemonProcess linaro-license-protection-releases
24
25 <Directory /srv/releases.linaro.org/configs/wsgi>
26 <Files wsgi_releases.py>
27 Order deny,allow
28 Allow from all
29 </Files>
30 </Directory>
31
32 <Directory />
33 IndexOptions NameWidth=* +SuppressDescription
34 Options +Indexes +FollowSymLinks
35 IndexIgnore favicon.ico HEADER.html
36 AllowOverride FileInfo Indexes
37 </Directory>
38
39</VirtualHost>
040
=== added file 'apache/snapshots.linaro.org'
--- apache/snapshots.linaro.org 1970-01-01 00:00:00 +0000
+++ apache/snapshots.linaro.org 2012-08-20 15:32:38 +0000
@@ -0,0 +1,154 @@
1<VirtualHost 91.189.95.80:80>
2
3 Alias /static/ /srv/snapshots.linaro.org/linaro-license-protection/static/
4 DocumentRoot /srv/snapshots.linaro.org/www
5 ServerName snapshots.linaro.org
6 ServerAdmin webmaster@linaro.org
7 CustomLog /var/log/apache2/snapshots.linaro.org-access.log combined
8 ErrorLog /var/log/apache2/snapshots.linaro.org-error.log
9
10 Redirect /hwpacks https://snapshots.linaro.org/hwpacks
11 Redirect /precise/restricted https://snapshots.linaro.org/precise/restricted
12
13 <Directory /srv/snapshots.linaro.org/linaro-license-protection/static>
14 Order deny,allow
15 Allow from all
16 </Directory>
17
18 <Directory /srv/snapshots.linaro.org/www>
19 Order deny,allow
20 Allow from all
21 </Directory>
22
23 XSendFile on
24 XSendFilePath /srv/snapshots.linaro.org/www
25
26 WSGIScriptAlias / /srv/snapshots.linaro.org/configs/wsgi/wsgi_snapshots.py
27 WSGIDaemonProcess linaro-license-protection-snapshots
28
29 <Directory /srv/snapshots.linaro.org/configs/wsgi>
30 <Files wsgi_snapshots.py>
31 Order deny,allow
32 Allow from all
33 </Files>
34 </Directory>
35
36 <Directory />
37 IndexOptions NameWidth=* +SuppressDescription
38 Options +Indexes +FollowSymLinks
39 IndexIgnore favicon.ico HEADER.html
40 AllowOverride FileInfo Indexes
41 </Directory>
42
43</VirtualHost>
44
45<VirtualHost 91.189.95.80:443>
46
47 Alias /static/ /srv/snapshots.linaro.org/linaro-license-protection/static/
48 DocumentRoot /srv/snapshots.linaro.org/www
49 ServerName snapshots.linaro.org
50 ServerAdmin webmaster@linaro.org
51 CustomLog /var/log/apache2/snapshots.linaro.org-access.log combined
52 ErrorLog /var/log/apache2/snapshots.linaro.org-error.log
53
54 SSLEngine On
55 SSLCertificateFile /etc/apache2/ssl/staging.snapshots.linaro.org.pem
56
57 <Directory /srv/snapshots.linaro.org/linaro-license-protection/static>
58 Order deny,allow
59 Allow from all
60 </Directory>
61
62 <Directory /srv/snapshots.linaro.org/www>
63 Order deny,allow
64 Allow from all
65 </Directory>
66
67 XSendFile on
68 XSendFilePath /srv/snapshots.linaro.org/www
69
70 WSGIScriptAlias / /srv/snapshots.linaro.org/configs/wsgi/wsgi_snapshots.py
71 WSGIDaemonProcess linaro-license-protection-snapshots-ssl
72
73 <Directory /srv/snapshots.linaro.org/configs/wsgi>
74 <Files wsgi_snapshots.py>
75 Order deny,allow
76 Allow from all
77 </Files>
78 </Directory>
79
80 <Directory />
81 IndexOptions NameWidth=* +SuppressDescription
82 Options +Indexes +FollowSymLinks
83 IndexIgnore favicon.ico HEADER.html
84 AllowOverride FileInfo Indexes
85 </Directory>
86
87 <Location "/hwpacks">
88 PythonAccessHandler apache_openid::protect
89 PythonOption handler openidteams
90 PythonOption authorized-teams-list-url "file:///etc/apache2/security/all-private-hwpack-teams.txt"
91 PythonOption action-path "/openid/"
92 </Location>
93
94 <Location "/openid/">
95 Allow from all
96 SetHandler mod_python
97 PythonAccessHandler apache_openid::protect
98 PythonOption handler openidteams
99 PythonOption store-type file
100 PythonOption store-directory /var/cache/apache2/openid/
101 PythonOption allowed-op-list-url "file:///etc/apache2/security/allowed-ops.txt"
102 PythonOption authorized-teams-list-url "file:///etc/apache2/security/all-private-hwpack-teams.txt"
103 PythonOption authorized-teams-list-url "file:///etc/apache2/security/linaro-teams.txt"
104 PythonOption action-path "/openid/"
105 </Location>
106
107 <Location "/precise/restricted">
108 PythonAccessHandler apache_openid::protect
109 PythonOption handler openidteams
110 PythonOption authorized-teams-list-url "file:///etc/apache2/security/linaro-teams.txt"
111 PythonOption action-path "/openid/"
112 </Location>
113
114 Alias /hwpacks/freescale /srv/landing-teams/hwpacks/freescale
115 <Location "/hwpacks/freescale">
116 PythonAccessHandler apache_openid::protect
117 PythonOption handler openidteams
118 PythonOption authorized-teams-list-url "file:///etc/apache2/security/freescale-private-hwpack-teams.txt"
119 PythonOption action-path "/openid/"
120 </Location>
121
122 Alias /hwpacks/samsung /srv/landing-teams/hwpacks/samsung
123 <Location "/hwpacks/samsung">
124 PythonAccessHandler apache_openid::protect
125 PythonOption handler openidteams
126 PythonOption authorized-teams-list-url "file:///etc/apache2/security/samsung-private-hwpack-teams.txt"
127 PythonOption action-path "/openid/"
128 </Location>
129
130 Alias /hwpacks/ste /srv/landing-teams/hwpacks/ste
131 <Location "/hwpacks/ste">
132 PythonAccessHandler apache_openid::protect
133 PythonOption handler openidteams
134 PythonOption authorized-teams-list-url "file:///etc/apache2/security/ste-private-hwpack-teams.txt"
135 PythonOption action-path "/openid/"
136 </Location>
137
138 Alias /hwpacks/ti /srv/landing-teams/hwpacks/ti
139 <Location "/hwpacks/ti">
140 PythonAccessHandler apache_openid::protect
141 PythonOption handler openidteams
142 PythonOption authorized-teams-list-url "file:///etc/apache2/security/ti-private-hwpack-teams.txt"
143 PythonOption action-path "/openid/"
144 </Location>
145
146 Alias /hwpacks/arm /srv/landing-teams/hwpacks/arm
147 <Location "/hwpacks/arm">
148 PythonAccessHandler apache_openid::protect
149 PythonOption handler openidteams
150 PythonOption authorized-teams-list-url "file:///etc/apache2/security/arm-private-hwpack-teams.txt"
151 PythonOption action-path "/openid/"
152 </Location>
153
154</VirtualHost>
0155
=== added file 'apache/staging.releases.linaro.org'
--- apache/staging.releases.linaro.org 1970-01-01 00:00:00 +0000
+++ apache/staging.releases.linaro.org 2012-08-20 15:32:38 +0000
@@ -0,0 +1,39 @@
1<VirtualHost 91.189.95.80:80>
2 Alias /static/ /srv/staging.releases.linaro.org/linaro-license-protection/static/
3 DocumentRoot /srv/staging.releases.linaro.org/www
4 ServerName staging.releases.linaro.org
5 ServerAdmin webmaster@linaro.org
6 CustomLog /var/log/apache2/staging.releases.linaro.org-access.log combined
7 ErrorLog /var/log/apache2/staging.releases.linaro.org-error.log
8
9 <Directory /srv/staging.releases.linaro.org/linaro-license-protection/static>
10 Order deny,allow
11 Allow from all
12 </Directory>
13
14 <Directory /srv/staging.releases.linaro.org/www>
15 Order deny,allow
16 Allow from all
17 </Directory>
18
19 XSendFile on
20 XSendFilePath /srv/staging.releases.linaro.org/www
21
22 WSGIScriptAlias / /srv/staging.releases.linaro.org/configs/wsgi/wsgi_staging_releases.py
23 WSGIDaemonProcess linaro-license-protection-staging-releases
24
25 <Directory /srv/staging.releases.linaro.org/configs/wsgi>
26 <Files wsgi_staging_releases.py>
27 Order deny,allow
28 Allow from all
29 </Files>
30 </Directory>
31
32 <Directory />
33 IndexOptions NameWidth=* +SuppressDescription
34 Options +Indexes +FollowSymLinks
35 IndexIgnore favicon.ico HEADER.html
36 AllowOverride FileInfo Indexes
37 </Directory>
38
39</VirtualHost>
040
=== added file 'apache/staging.snapshots.linaro.org'
--- apache/staging.snapshots.linaro.org 1970-01-01 00:00:00 +0000
+++ apache/staging.snapshots.linaro.org 2012-08-20 15:32:38 +0000
@@ -0,0 +1,154 @@
1<VirtualHost 91.189.95.80:80>
2
3 Alias /static/ /srv/staging.snapshots.linaro.org/linaro-license-protection/static/
4 DocumentRoot /srv/staging.snapshots.linaro.org/www
5 ServerName staging.snapshots.linaro.org
6 ServerAdmin webmaster@linaro.org
7 CustomLog /var/log/apache2/staging.snapshots.linaro.org-access.log combined
8 ErrorLog /var/log/apache2/staging.snapshots.linaro.org-error.log
9
10 Redirect /hwpacks https://staging.snapshots.linaro.org/hwpacks
11 Redirect /precise/restricted https://staging.snapshots.linaro.org/precise/restricted
12
13 <Directory /srv/staging.snapshots.linaro.org/linaro-license-protection/static>
14 Order deny,allow
15 Allow from all
16 </Directory>
17
18 <Directory /srv/staging.snapshots.linaro.org/www>
19 Order deny,allow
20 Allow from all
21 </Directory>
22
23 XSendFile on
24 XSendFilePath /srv/staging.snapshots.linaro.org/www
25
26 WSGIScriptAlias / /srv/staging.snapshots.linaro.org/configs/wsgi/wsgi_staging_snapshots.py
27 WSGIDaemonProcess linaro-license-protection-staging-snapshots
28
29 <Directory /srv/staging.snapshots.linaro.org/configs/wsgi>
30 <Files wsgi_staging_snapshots.py>
31 Order deny,allow
32 Allow from all
33 </Files>
34 </Directory>
35
36 <Directory />
37 IndexOptions NameWidth=* +SuppressDescription
38 Options +Indexes +FollowSymLinks
39 IndexIgnore favicon.ico HEADER.html
40 AllowOverride FileInfo Indexes
41 </Directory>
42
43</VirtualHost>
44
45<VirtualHost 91.189.95.80:443>
46
47 Alias /static/ /srv/staging.snapshots.linaro.org/linaro-license-protection/static/
48 DocumentRoot /srv/staging.snapshots.linaro.org/www
49 ServerName staging.snapshots.linaro.org
50 ServerAdmin webmaster@linaro.org
51 CustomLog /var/log/apache2/staging.snapshots.linaro.org-access.log combined
52 ErrorLog /var/log/apache2/staging.snapshots.linaro.org-error.log
53
54 SSLEngine On
55 SSLCertificateFile /etc/apache2/ssl/staging.snapshots.linaro.org.pem
56
57 <Directory /srv/staging.snapshots.linaro.org/linaro-license-protection/static>
58 Order deny,allow
59 Allow from all
60 </Directory>
61
62 <Directory /srv/staging.snapshots.linaro.org/www>
63 Order deny,allow
64 Allow from all
65 </Directory>
66
67 XSendFile on
68 XSendFilePath /srv/staging.snapshots.linaro.org/www
69
70 WSGIScriptAlias / /srv/staging.snapshots.linaro.org/configs/wsgi/wsgi_staging_snapshots.py
71 WSGIDaemonProcess linaro-license-protection-staging-snapshots-ssl
72
73 <Directory /srv/staging.snapshots.linaro.org/configs/wsgi>
74 <Files wsgi_staging_snapshots.py>
75 Order deny,allow
76 Allow from all
77 </Files>
78 </Directory>
79
80 <Directory />
81 IndexOptions NameWidth=* +SuppressDescription
82 Options +Indexes +FollowSymLinks
83 IndexIgnore favicon.ico HEADER.html
84 AllowOverride FileInfo Indexes
85 </Directory>
86
87 <Location "/hwpacks">
88 PythonAccessHandler apache_openid::protect
89 PythonOption handler openidteams
90 PythonOption authorized-teams-list-url "file:///etc/apache2/security/all-private-hwpack-teams.txt"
91 PythonOption action-path "/openid/"
92 </Location>
93
94 <Location "/openid/">
95 Allow from all
96 SetHandler mod_python
97 PythonAccessHandler apache_openid::protect
98 PythonOption handler openidteams
99 PythonOption store-type file
100 PythonOption store-directory /var/cache/apache2/openid/
101 PythonOption allowed-op-list-url "file:///etc/apache2/security/allowed-ops.txt"
102 PythonOption authorized-teams-list-url "file:///etc/apache2/security/all-private-hwpack-teams.txt"
103 PythonOption authorized-teams-list-url "file:///etc/apache2/security/linaro-teams.txt"
104 PythonOption action-path "/openid/"
105 </Location>
106
107 <Location "/precise/restricted">
108 PythonAccessHandler apache_openid::protect
109 PythonOption handler openidteams
110 PythonOption authorized-teams-list-url "file:///etc/apache2/security/linaro-teams.txt"
111 PythonOption action-path "/openid/"
112 </Location>
113
114 Alias /hwpacks/freescale /srv/landing-teams/hwpacks/freescale
115 <Location "/hwpacks/freescale">
116 PythonAccessHandler apache_openid::protect
117 PythonOption handler openidteams
118 PythonOption authorized-teams-list-url "file:///etc/apache2/security/freescale-private-hwpack-teams.txt"
119 PythonOption action-path "/openid/"
120 </Location>
121
122 Alias /hwpacks/samsung /srv/landing-teams/hwpacks/samsung
123 <Location "/hwpacks/samsung">
124 PythonAccessHandler apache_openid::protect
125 PythonOption handler openidteams
126 PythonOption authorized-teams-list-url "file:///etc/apache2/security/samsung-private-hwpack-teams.txt"
127 PythonOption action-path "/openid/"
128 </Location>
129
130 Alias /hwpacks/ste /srv/landing-teams/hwpacks/ste
131 <Location "/hwpacks/ste">
132 PythonAccessHandler apache_openid::protect
133 PythonOption handler openidteams
134 PythonOption authorized-teams-list-url "file:///etc/apache2/security/ste-private-hwpack-teams.txt"
135 PythonOption action-path "/openid/"
136 </Location>
137
138 Alias /hwpacks/ti /srv/landing-teams/hwpacks/ti
139 <Location "/hwpacks/ti">
140 PythonAccessHandler apache_openid::protect
141 PythonOption handler openidteams
142 PythonOption authorized-teams-list-url "file:///etc/apache2/security/ti-private-hwpack-teams.txt"
143 PythonOption action-path "/openid/"
144 </Location>
145
146 Alias /hwpacks/arm /srv/landing-teams/hwpacks/arm
147 <Location "/hwpacks/arm">
148 PythonAccessHandler apache_openid::protect
149 PythonOption handler openidteams
150 PythonOption authorized-teams-list-url "file:///etc/apache2/security/arm-private-hwpack-teams.txt"
151 PythonOption action-path "/openid/"
152 </Location>
153
154</VirtualHost>
0155
=== added directory 'django'
=== added file 'django/settings_releases.py'
--- django/settings_releases.py 1970-01-01 00:00:00 +0000
+++ django/settings_releases.py 2012-08-20 15:32:38 +0000
@@ -0,0 +1,22 @@
1# Settings for releases.linaro.org.
2
3from settings import *
4
5DEBUG = False
6
7DATABASES = {
8 'default': {
9 'ENGINE': 'django.db.backends.sqlite3',
10 'NAME': '/srv/releases.linaro.org/db/licenses.db',
11 'USER': '',
12 'PASSWORD': '',
13 'HOST': '',
14 'PORT': '',
15 }
16}
17
18TEMPLATE_DIRS = (
19 os.path.join(PROJECT_ROOT, "templates_releases" ),
20 os.path.join(PROJECT_ROOT, "templates" ),
21 )
22SERVED_PATHS = ['/srv/releases.linaro.org/www']
023
=== added file 'django/settings_snapshots.py'
--- django/settings_snapshots.py 1970-01-01 00:00:00 +0000
+++ django/settings_snapshots.py 2012-08-20 15:32:38 +0000
@@ -0,0 +1,22 @@
1# Settings for snapshots.linaro.org.
2
3from settings import *
4
5DEBUG = False
6
7DATABASES = {
8 'default': {
9 'ENGINE': 'django.db.backends.sqlite3',
10 'NAME': '/srv/snapshots.linaro.org/db/licenses.db',
11 'USER': '',
12 'PASSWORD': '',
13 'HOST': '',
14 'PORT': '',
15 }
16}
17
18TEMPLATE_DIRS = (
19 os.path.join(PROJECT_ROOT, "templates_snapshots" ),
20 os.path.join(PROJECT_ROOT, "templates" ),
21 )
22SERVED_PATHS = ['/srv/snapshots.linaro.org/www']
023
=== added file 'django/settings_staging_releases.py'
--- django/settings_staging_releases.py 1970-01-01 00:00:00 +0000
+++ django/settings_staging_releases.py 2012-08-20 15:32:38 +0000
@@ -0,0 +1,20 @@
1# Settings for staging.releases.linaro.org.
2
3from settings import *
4
5DATABASES = {
6 'default': {
7 'ENGINE': 'django.db.backends.sqlite3',
8 'NAME': '/srv/staging.releases.linaro.org/db/licenses.db',
9 'USER': '',
10 'PASSWORD': '',
11 'HOST': '',
12 'PORT': '',
13 }
14}
15
16TEMPLATE_DIRS = (
17 os.path.join(PROJECT_ROOT, "templates_releases" ),
18 os.path.join(PROJECT_ROOT, "templates" ),
19 )
20SERVED_PATHS = ['/srv/staging.releases.linaro.org/www']
021
=== added file 'django/settings_staging_snapshots.py'
--- django/settings_staging_snapshots.py 1970-01-01 00:00:00 +0000
+++ django/settings_staging_snapshots.py 2012-08-20 15:32:38 +0000
@@ -0,0 +1,20 @@
1# Settings for staging.snapshots.linaro.org.
2
3from settings import *
4
5DATABASES = {
6 'default': {
7 'ENGINE': 'django.db.backends.sqlite3',
8 'NAME': '/srv/staging.snapshots.linaro.org/db/licenses.db',
9 'USER': '',
10 'PASSWORD': '',
11 'HOST': '',
12 'PORT': '',
13 }
14}
15
16TEMPLATE_DIRS = (
17 os.path.join(PROJECT_ROOT, "templates_snapshots" ),
18 os.path.join(PROJECT_ROOT, "templates" ),
19 )
20SERVED_PATHS = ['/srv/staging.snapshots.linaro.org/www']
021
=== added directory 'wsgi'
=== added file 'wsgi/wsgi_releases.py'
--- wsgi/wsgi_releases.py 1970-01-01 00:00:00 +0000
+++ wsgi/wsgi_releases.py 2012-08-20 15:32:38 +0000
@@ -0,0 +1,19 @@
1"""
2WSGI config for license_protected_downloads project.
3
4This file configures WSGI for releases.linaro.org.
5"""
6import os
7import sys
8sys.path.append("/usr/lib/python2.7/dist-packages")
9sys.path.append("/usr/lib/pymodules/python2.7")
10sys.path.append("/usr/lib/python2.7")
11
12sys.path.append("/srv/releases.linaro.org")
13sys.path.append("/srv/releases.linaro.org/linaro-license-protection")
14sys.path.append("/srv/releases.linaro.org/configs/django")
15
16os.environ["DJANGO_SETTINGS_MODULE"] = "settings_releases"
17
18import django.core.handlers.wsgi
19application = django.core.handlers.wsgi.WSGIHandler()
020
=== added file 'wsgi/wsgi_snapshots.py'
--- wsgi/wsgi_snapshots.py 1970-01-01 00:00:00 +0000
+++ wsgi/wsgi_snapshots.py 2012-08-20 15:32:38 +0000
@@ -0,0 +1,19 @@
1"""
2WSGI config for license_protected_downloads project.
3
4This file configures WSGI for snapshots.linaro.org.
5"""
6import os
7import sys
8sys.path.append("/usr/lib/python2.7/dist-packages")
9sys.path.append("/usr/lib/pymodules/python2.7")
10sys.path.append("/usr/lib/python2.7")
11
12sys.path.append("/srv/snapshots.linaro.org")
13sys.path.append("/srv/snapshots.linaro.org/linaro-license-protection")
14sys.path.append("/srv/snapshots.linaro.org/configs/django")
15
16os.environ["DJANGO_SETTINGS_MODULE"] = "settings_snapshots"
17
18import django.core.handlers.wsgi
19application = django.core.handlers.wsgi.WSGIHandler()
020
=== added file 'wsgi/wsgi_staging_releases.py'
--- wsgi/wsgi_staging_releases.py 1970-01-01 00:00:00 +0000
+++ wsgi/wsgi_staging_releases.py 2012-08-20 15:32:38 +0000
@@ -0,0 +1,19 @@
1"""
2WSGI config for license_protected_downloads project.
3
4This file configures WSGI for staging.releases.linaro.org.
5"""
6import os
7import sys
8sys.path.append("/usr/lib/python2.7/dist-packages")
9sys.path.append("/usr/lib/pymodules/python2.7")
10sys.path.append("/usr/lib/python2.7")
11
12sys.path.append("/srv/staging.releases.linaro.org")
13sys.path.append("/srv/staging.releases.linaro.org/linaro-license-protection")
14sys.path.append("/srv/staging.releases.linaro.org/configs/django")
15
16os.environ["DJANGO_SETTINGS_MODULE"] = "settings_staging_releases"
17
18import django.core.handlers.wsgi
19application = django.core.handlers.wsgi.WSGIHandler()
020
=== added file 'wsgi/wsgi_staging_snapshots.py'
--- wsgi/wsgi_staging_snapshots.py 1970-01-01 00:00:00 +0000
+++ wsgi/wsgi_staging_snapshots.py 2012-08-20 15:32:38 +0000
@@ -0,0 +1,19 @@
1"""
2WSGI config for license_protected_downloads project.
3
4This file configures WSGI for staging.snapshots.linaro.org.
5"""
6import os
7import sys
8sys.path.append("/usr/lib/python2.7/dist-packages")
9sys.path.append("/usr/lib/pymodules/python2.7")
10sys.path.append("/usr/lib/python2.7")
11
12sys.path.append("/srv/staging.snapshots.linaro.org")
13sys.path.append("/srv/staging.snapshots.linaro.org/linaro-license-protection")
14sys.path.append("/srv/staging.snapshots.linaro.org/configs/django")
15
16os.environ["DJANGO_SETTINGS_MODULE"] = "settings_staging_snapshots"
17
18import django.core.handlers.wsgi
19application = django.core.handlers.wsgi.WSGIHandler()

Subscribers

People subscribed via source and target branches