Merge lp:~dooferlad/linaro-license-protection/django-configs-debug-off into lp:~linaro-automation/linaro-license-protection/trunk
- django-configs-debug-off
- Merge into 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 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Данило Шеган (community) | Disapprove | ||
Review via email: mp+120411@code.launchpad.net |
Commit message
Description of the change
To post a comment you must log in.
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
1 | === added file 'README' | |||
2 | --- README 1970-01-01 00:00:00 +0000 | |||
3 | +++ README 2012-08-20 15:32:38 +0000 | |||
4 | @@ -0,0 +1,213 @@ | |||
5 | 1 | Linaro License Protection configuration | ||
6 | 2 | ======================================= | ||
7 | 3 | |||
8 | 4 | This branch contains current production configuration for | ||
9 | 5 | |||
10 | 6 | * releases.linaro.org (hosted on mombin.canonical.com) | ||
11 | 7 | * snapshots.linaro.org (mombin) | ||
12 | 8 | * staging.releases.linaro.org (kahaku.canonical.com) | ||
13 | 9 | * staging.snapshots.linaro.org (kahaku.canonical.com) | ||
14 | 10 | |||
15 | 11 | |||
16 | 12 | Dependencies | ||
17 | 13 | ------------ | ||
18 | 14 | |||
19 | 15 | libapache2-mod-xsendfile >= 0.10 | ||
20 | 16 | libapache2-mod-python | ||
21 | 17 | python-django >= 1.3.1 | ||
22 | 18 | python-django-openid-auth | ||
23 | 19 | python-apache-openid | ||
24 | 20 | |||
25 | 21 | python-apache-openid is needed until we migrate existing apache | ||
26 | 22 | openid-protected directories to the new setup. | ||
27 | 23 | |||
28 | 24 | |||
29 | 25 | Pushing framework on snapshots.linaro.org | ||
30 | 26 | ----------------------------------------- | ||
31 | 27 | |||
32 | 28 | Pushing/uploading side is currently implemented as a multi-system setup: | ||
33 | 29 | |||
34 | 30 | * configuration on jenkins | ||
35 | 31 | * configuration of users on server | ||
36 | 32 | |||
37 | 33 | Configuration of jenkins | ||
38 | 34 | ........................ | ||
39 | 35 | |||
40 | 36 | * We are using Publish-over-SSH plugin for jenkins | ||
41 | 37 | |||
42 | 38 | * We perform two build (not publish, to allow for LAVA to have known URLs) | ||
43 | 39 | steps: | ||
44 | 40 | |||
45 | 41 | * publish artifacts over SSH (ends up on a private location on the server) | ||
46 | 42 | |||
47 | 43 | * call out a trigger script over SSH (to move files securely to a public | ||
48 | 44 | location) | ||
49 | 45 | |||
50 | 46 | * We use strictly "push from master" in advanced settings of publish-over-ssh | ||
51 | 47 | plugin, and keep private keys for both actions above on the master: | ||
52 | 48 | |||
53 | 49 | /home/ubuntu/snapshots-sync2/linaro-android-build-publish — | ||
54 | 50 | linaro-android-build-publish | ||
55 | 51 | /home/ubuntu/snapshots-sync2/linaro-android-build-publish-trigger — | ||
56 | 52 | linaro-android-build-publish-trigger | ||
57 | 53 | |||
58 | 54 | Configuration of users on the receiving server (snapshots.l.o) | ||
59 | 55 | .............................................................. | ||
60 | 56 | |||
61 | 57 | For the two actions above, we have two separate users for all hosts | ||
62 | 58 | accessing the system (two for android-build.linaro.org and another two | ||
63 | 59 | for ci.linaro.org at this time). | ||
64 | 60 | |||
65 | 61 | One of the users is a sftp/push user, and another is the trigger user that | ||
66 | 62 | shuffles the files around. | ||
67 | 63 | |||
68 | 64 | Current users and their configurations: | ||
69 | 65 | |||
70 | 66 | * linaro-android-build-publish | ||
71 | 67 | /etc/ssh/user-authorized-keys/linaro-android-build-publish | ||
72 | 68 | |||
73 | 69 | command="/usr/lib/sftp-server",no-pty,no-port-forwarding,\ | ||
74 | 70 | no-X11-forwarding,no-agent-forwarding,from="50.17.250.69" \ | ||
75 | 71 | <PUBLIC-SSH-KEY-DATA> | ||
76 | 72 | |||
77 | 73 | (chrooted to /srv/snapshots.linaro.org/uploads/) | ||
78 | 74 | |||
79 | 75 | * linaro-android-build-publish-trigger: | ||
80 | 76 | |||
81 | 77 | /etc/ssh/user-authorized-keys/linaro-android-build-publish-trigger | ||
82 | 78 | |||
83 | 79 | command="/home/linaro-android-build-publish-trigger/scripts\ | ||
84 | 80 | /trigger-linaro-android-build-publish.sh \ | ||
85 | 81 | ${SSH_ORIGINAL_COMMAND#* }",\ | ||
86 | 82 | no-pty,no-port-forwarding,no-X11-forwarding,no-agent-forwarding, | ||
87 | 83 | from="50.17.250.69" <PUBLIC-SSH-KEY-DATA> | ||
88 | 84 | |||
89 | 85 | The script being executed passes parameters to publish_to_snapshots | ||
90 | 86 | which moves files from /uploads/ into appropriate public directory: | ||
91 | 87 | |||
92 | 88 | #!/bin/sh | ||
93 | 89 | if [ "$(id -un)" != "linaro-android-build-publish-trigger" ]; then | ||
94 | 90 | echo "This script is designed to be run as linaro-android-build-publish-trigger user" | ||
95 | 91 | exit 1 | ||
96 | 92 | fi | ||
97 | 93 | sudo -u linaro-android-build-publish /home/linaro-android-build-publish/linaro-license-protection/scripts/publish_to_snapshots.py "$@" | ||
98 | 94 | |||
99 | 95 | * linaro-ci-publish | ||
100 | 96 | |||
101 | 97 | Exactly the same as linaro-android-build-publish, except for the IP | ||
102 | 98 | (allowing ci.linaro.org from 50.17.200.206) and SSH key data. | ||
103 | 99 | |||
104 | 100 | * linaro-ci-publish-trigger | ||
105 | 101 | |||
106 | 102 | Like linaro-android-build-publish-trigger, with different IP | ||
107 | 103 | and SSH key data. Script lives in | ||
108 | 104 | |||
109 | 105 | /home/linaro-ci-publish-trigger/scripts/trigger-linaro-ci-publish.sh | ||
110 | 106 | |||
111 | 107 | and is of similar structure to the one for the user | ||
112 | 108 | linaro-android-build-publish-trigger. | ||
113 | 109 | |||
114 | 110 | android-build.linaro.org | ||
115 | 111 | ........................ | ||
116 | 112 | |||
117 | 113 | Runs Jenkins and uses SFTP plugin to access the above two users. Private | ||
118 | 114 | keys live in | ||
119 | 115 | |||
120 | 116 | /home/ubuntu/snapshots-sync2/linaro-android-build-publish — | ||
121 | 117 | linaro-android-build-publish | ||
122 | 118 | /home/ubuntu/snapshots-sync2/linaro-android-build-publish-trigger — | ||
123 | 119 | linaro-android-build-publish-trigger | ||
124 | 120 | |||
125 | 121 | To ensure serialization of steps, and allow LAVA submission, these happen as | ||
126 | 122 | build steps, and not as publishing steps. | ||
127 | 123 | |||
128 | 124 | Deployment steps | ||
129 | 125 | ---------------- | ||
130 | 126 | |||
131 | 127 | This documents our current deployment while at the same time representing | ||
132 | 128 | an example production deployment. | ||
133 | 129 | |||
134 | 130 | 1. Install the dependencies | ||
135 | 131 | (see the "Dependencies" section) | ||
136 | 132 | |||
137 | 133 | 2. Get the code | ||
138 | 134 | |||
139 | 135 | mkdir -p /srv/shared-branches | ||
140 | 136 | cd /srv/shared-branches | ||
141 | 137 | bzr branch lp:linaro-license-protection | ||
142 | 138 | |||
143 | 139 | (we are actually using http URLs since lp: defaults to bzr+ssh which | ||
144 | 140 | doesn't work on system accounts) | ||
145 | 141 | |||
146 | 142 | 3. Get the configuration | ||
147 | 143 | |||
148 | 144 | Configuration files for deploying to snapshots.linaro.org, | ||
149 | 145 | releases.linaro.org, staging.snapshots.linaro.org | ||
150 | 146 | and staging.releases.linaro.org all live in | ||
151 | 147 | |||
152 | 148 | lp:linaro-license-protection/configs | ||
153 | 149 | |||
154 | 150 | We need to branch that into /srv/shared-branches as well: | ||
155 | 151 | |||
156 | 152 | cd /srv/shared-branches | ||
157 | 153 | bzr branch lp:linaro-license-protection/configs linaro-license-protection-configs | ||
158 | 154 | |||
159 | 155 | 4. Checkout branches for the services you want to use: | ||
160 | 156 | |||
161 | 157 | (cd /srv/staging.snapshots.linaro.org && | ||
162 | 158 | bzr checkout /srv/shared-branches/linaro-license-protection-configs configs && | ||
163 | 159 | bzr checkout /srv/shared-branches/linaro-license-protection) | ||
164 | 160 | |||
165 | 161 | Replace "/srv/staging.snapshots.linaro.org" with one of | ||
166 | 162 | /srv/staging.releases.linaro.org | ||
167 | 163 | /srv/snapshots.linaro.org | ||
168 | 164 | /srv/releases.linaro.org | ||
169 | 165 | |||
170 | 166 | depending on the service you are deploying. | ||
171 | 167 | |||
172 | 168 | If you use these paths, none of the config files will need updating. | ||
173 | 169 | |||
174 | 170 | 5. Configure apache2 | ||
175 | 171 | |||
176 | 172 | Make sure mod-xsendfile and mod-python are enabled. | ||
177 | 173 | Copy appropriate | ||
178 | 174 | /srv/staging.snapshots.linaro.org/configs/apache/staging.snapshots.linaro.org | ||
179 | 175 | files to /etc/apache2/sites-available | ||
180 | 176 | |||
181 | 177 | Add appropriate NameVirtualHost directive to | ||
182 | 178 | |||
183 | 179 | /etc/apache2/sites-enabled/000-default | ||
184 | 180 | |||
185 | 181 | Run "a2ensite staging.snapshots.linaro.org". | ||
186 | 182 | |||
187 | 183 | You also need to set up SSL certificate for *snapshots.linaro.org. | ||
188 | 184 | |||
189 | 185 | 6. Create databases and set up static files | ||
190 | 186 | |||
191 | 187 | Make sure appropriate configs/django directory is in the PYTHONPATH | ||
192 | 188 | and set DJANGO_SETTINGS_MODULE and then run django-admin: | ||
193 | 189 | |||
194 | 190 | export PYTHONPATH=/srv/staging.snapshots.linaro.org:/srv/staging.snapshots.linaro.org/linaro-license-protection:/srv/staging.snapshots.linaro.org/configs/django | ||
195 | 191 | export DJANGO_SETTINGS_MODULE=settings_staging_snapshots | ||
196 | 192 | mkdir -p /srv/staging.snapshots.linaro.org/db | ||
197 | 193 | django-admin syncdb --noinput | ||
198 | 194 | django-admin collectstatic --noinput | ||
199 | 195 | |||
200 | 196 | 7. Set up a cron job to keep code updating automatically | ||
201 | 197 | |||
202 | 198 | You may want to automatically keep code up to date (mostly for staging) | ||
203 | 199 | instances. | ||
204 | 200 | |||
205 | 201 | There is | ||
206 | 202 | |||
207 | 203 | scripts/update-staging.py | ||
208 | 204 | |||
209 | 205 | which can be run from a cronjob to keep the above deployment always | ||
210 | 206 | up to date. | ||
211 | 207 | |||
212 | 208 | 8. Ensure license_protected_downloads/config.py contains relevant white-listed | ||
213 | 209 | IP addresses: | ||
214 | 210 | |||
215 | 211 | For releases.linaro.org: | ||
216 | 212 | * android-build.linaro.org (50.17.250.69) | ||
217 | 213 | * validation.linaro.org (213.123.120.124) | ||
218 | 0 | 214 | ||
219 | === renamed file 'README' => 'README.moved' | |||
220 | === added directory 'apache' | |||
221 | === added file 'apache/releases.linaro.org' | |||
222 | --- apache/releases.linaro.org 1970-01-01 00:00:00 +0000 | |||
223 | +++ apache/releases.linaro.org 2012-08-20 15:32:38 +0000 | |||
224 | @@ -0,0 +1,39 @@ | |||
225 | 1 | <VirtualHost 91.189.95.80:80> | ||
226 | 2 | Alias /static/ /srv/releases.linaro.org/linaro-license-protection/static/ | ||
227 | 3 | DocumentRoot /srv/releases.linaro.org/www | ||
228 | 4 | ServerName releases.linaro.org | ||
229 | 5 | ServerAdmin webmaster@linaro.org | ||
230 | 6 | CustomLog /var/log/apache2/releases.linaro.org-access.log combined | ||
231 | 7 | ErrorLog /var/log/apache2/releases.linaro.org-error.log | ||
232 | 8 | |||
233 | 9 | <Directory /srv/releases.linaro.org/linaro-license-protection/static> | ||
234 | 10 | Order deny,allow | ||
235 | 11 | Allow from all | ||
236 | 12 | </Directory> | ||
237 | 13 | |||
238 | 14 | <Directory /srv/releases.linaro.org/www> | ||
239 | 15 | Order deny,allow | ||
240 | 16 | Allow from all | ||
241 | 17 | </Directory> | ||
242 | 18 | |||
243 | 19 | XSendFile on | ||
244 | 20 | XSendFilePath /srv/releases.linaro.org/www | ||
245 | 21 | |||
246 | 22 | WSGIScriptAlias / /srv/releases.linaro.org/configs/wsgi/wsgi_releases.py | ||
247 | 23 | WSGIDaemonProcess linaro-license-protection-releases | ||
248 | 24 | |||
249 | 25 | <Directory /srv/releases.linaro.org/configs/wsgi> | ||
250 | 26 | <Files wsgi_releases.py> | ||
251 | 27 | Order deny,allow | ||
252 | 28 | Allow from all | ||
253 | 29 | </Files> | ||
254 | 30 | </Directory> | ||
255 | 31 | |||
256 | 32 | <Directory /> | ||
257 | 33 | IndexOptions NameWidth=* +SuppressDescription | ||
258 | 34 | Options +Indexes +FollowSymLinks | ||
259 | 35 | IndexIgnore favicon.ico HEADER.html | ||
260 | 36 | AllowOverride FileInfo Indexes | ||
261 | 37 | </Directory> | ||
262 | 38 | |||
263 | 39 | </VirtualHost> | ||
264 | 0 | 40 | ||
265 | === added file 'apache/snapshots.linaro.org' | |||
266 | --- apache/snapshots.linaro.org 1970-01-01 00:00:00 +0000 | |||
267 | +++ apache/snapshots.linaro.org 2012-08-20 15:32:38 +0000 | |||
268 | @@ -0,0 +1,154 @@ | |||
269 | 1 | <VirtualHost 91.189.95.80:80> | ||
270 | 2 | |||
271 | 3 | Alias /static/ /srv/snapshots.linaro.org/linaro-license-protection/static/ | ||
272 | 4 | DocumentRoot /srv/snapshots.linaro.org/www | ||
273 | 5 | ServerName snapshots.linaro.org | ||
274 | 6 | ServerAdmin webmaster@linaro.org | ||
275 | 7 | CustomLog /var/log/apache2/snapshots.linaro.org-access.log combined | ||
276 | 8 | ErrorLog /var/log/apache2/snapshots.linaro.org-error.log | ||
277 | 9 | |||
278 | 10 | Redirect /hwpacks https://snapshots.linaro.org/hwpacks | ||
279 | 11 | Redirect /precise/restricted https://snapshots.linaro.org/precise/restricted | ||
280 | 12 | |||
281 | 13 | <Directory /srv/snapshots.linaro.org/linaro-license-protection/static> | ||
282 | 14 | Order deny,allow | ||
283 | 15 | Allow from all | ||
284 | 16 | </Directory> | ||
285 | 17 | |||
286 | 18 | <Directory /srv/snapshots.linaro.org/www> | ||
287 | 19 | Order deny,allow | ||
288 | 20 | Allow from all | ||
289 | 21 | </Directory> | ||
290 | 22 | |||
291 | 23 | XSendFile on | ||
292 | 24 | XSendFilePath /srv/snapshots.linaro.org/www | ||
293 | 25 | |||
294 | 26 | WSGIScriptAlias / /srv/snapshots.linaro.org/configs/wsgi/wsgi_snapshots.py | ||
295 | 27 | WSGIDaemonProcess linaro-license-protection-snapshots | ||
296 | 28 | |||
297 | 29 | <Directory /srv/snapshots.linaro.org/configs/wsgi> | ||
298 | 30 | <Files wsgi_snapshots.py> | ||
299 | 31 | Order deny,allow | ||
300 | 32 | Allow from all | ||
301 | 33 | </Files> | ||
302 | 34 | </Directory> | ||
303 | 35 | |||
304 | 36 | <Directory /> | ||
305 | 37 | IndexOptions NameWidth=* +SuppressDescription | ||
306 | 38 | Options +Indexes +FollowSymLinks | ||
307 | 39 | IndexIgnore favicon.ico HEADER.html | ||
308 | 40 | AllowOverride FileInfo Indexes | ||
309 | 41 | </Directory> | ||
310 | 42 | |||
311 | 43 | </VirtualHost> | ||
312 | 44 | |||
313 | 45 | <VirtualHost 91.189.95.80:443> | ||
314 | 46 | |||
315 | 47 | Alias /static/ /srv/snapshots.linaro.org/linaro-license-protection/static/ | ||
316 | 48 | DocumentRoot /srv/snapshots.linaro.org/www | ||
317 | 49 | ServerName snapshots.linaro.org | ||
318 | 50 | ServerAdmin webmaster@linaro.org | ||
319 | 51 | CustomLog /var/log/apache2/snapshots.linaro.org-access.log combined | ||
320 | 52 | ErrorLog /var/log/apache2/snapshots.linaro.org-error.log | ||
321 | 53 | |||
322 | 54 | SSLEngine On | ||
323 | 55 | SSLCertificateFile /etc/apache2/ssl/staging.snapshots.linaro.org.pem | ||
324 | 56 | |||
325 | 57 | <Directory /srv/snapshots.linaro.org/linaro-license-protection/static> | ||
326 | 58 | Order deny,allow | ||
327 | 59 | Allow from all | ||
328 | 60 | </Directory> | ||
329 | 61 | |||
330 | 62 | <Directory /srv/snapshots.linaro.org/www> | ||
331 | 63 | Order deny,allow | ||
332 | 64 | Allow from all | ||
333 | 65 | </Directory> | ||
334 | 66 | |||
335 | 67 | XSendFile on | ||
336 | 68 | XSendFilePath /srv/snapshots.linaro.org/www | ||
337 | 69 | |||
338 | 70 | WSGIScriptAlias / /srv/snapshots.linaro.org/configs/wsgi/wsgi_snapshots.py | ||
339 | 71 | WSGIDaemonProcess linaro-license-protection-snapshots-ssl | ||
340 | 72 | |||
341 | 73 | <Directory /srv/snapshots.linaro.org/configs/wsgi> | ||
342 | 74 | <Files wsgi_snapshots.py> | ||
343 | 75 | Order deny,allow | ||
344 | 76 | Allow from all | ||
345 | 77 | </Files> | ||
346 | 78 | </Directory> | ||
347 | 79 | |||
348 | 80 | <Directory /> | ||
349 | 81 | IndexOptions NameWidth=* +SuppressDescription | ||
350 | 82 | Options +Indexes +FollowSymLinks | ||
351 | 83 | IndexIgnore favicon.ico HEADER.html | ||
352 | 84 | AllowOverride FileInfo Indexes | ||
353 | 85 | </Directory> | ||
354 | 86 | |||
355 | 87 | <Location "/hwpacks"> | ||
356 | 88 | PythonAccessHandler apache_openid::protect | ||
357 | 89 | PythonOption handler openidteams | ||
358 | 90 | PythonOption authorized-teams-list-url "file:///etc/apache2/security/all-private-hwpack-teams.txt" | ||
359 | 91 | PythonOption action-path "/openid/" | ||
360 | 92 | </Location> | ||
361 | 93 | |||
362 | 94 | <Location "/openid/"> | ||
363 | 95 | Allow from all | ||
364 | 96 | SetHandler mod_python | ||
365 | 97 | PythonAccessHandler apache_openid::protect | ||
366 | 98 | PythonOption handler openidteams | ||
367 | 99 | PythonOption store-type file | ||
368 | 100 | PythonOption store-directory /var/cache/apache2/openid/ | ||
369 | 101 | PythonOption allowed-op-list-url "file:///etc/apache2/security/allowed-ops.txt" | ||
370 | 102 | PythonOption authorized-teams-list-url "file:///etc/apache2/security/all-private-hwpack-teams.txt" | ||
371 | 103 | PythonOption authorized-teams-list-url "file:///etc/apache2/security/linaro-teams.txt" | ||
372 | 104 | PythonOption action-path "/openid/" | ||
373 | 105 | </Location> | ||
374 | 106 | |||
375 | 107 | <Location "/precise/restricted"> | ||
376 | 108 | PythonAccessHandler apache_openid::protect | ||
377 | 109 | PythonOption handler openidteams | ||
378 | 110 | PythonOption authorized-teams-list-url "file:///etc/apache2/security/linaro-teams.txt" | ||
379 | 111 | PythonOption action-path "/openid/" | ||
380 | 112 | </Location> | ||
381 | 113 | |||
382 | 114 | Alias /hwpacks/freescale /srv/landing-teams/hwpacks/freescale | ||
383 | 115 | <Location "/hwpacks/freescale"> | ||
384 | 116 | PythonAccessHandler apache_openid::protect | ||
385 | 117 | PythonOption handler openidteams | ||
386 | 118 | PythonOption authorized-teams-list-url "file:///etc/apache2/security/freescale-private-hwpack-teams.txt" | ||
387 | 119 | PythonOption action-path "/openid/" | ||
388 | 120 | </Location> | ||
389 | 121 | |||
390 | 122 | Alias /hwpacks/samsung /srv/landing-teams/hwpacks/samsung | ||
391 | 123 | <Location "/hwpacks/samsung"> | ||
392 | 124 | PythonAccessHandler apache_openid::protect | ||
393 | 125 | PythonOption handler openidteams | ||
394 | 126 | PythonOption authorized-teams-list-url "file:///etc/apache2/security/samsung-private-hwpack-teams.txt" | ||
395 | 127 | PythonOption action-path "/openid/" | ||
396 | 128 | </Location> | ||
397 | 129 | |||
398 | 130 | Alias /hwpacks/ste /srv/landing-teams/hwpacks/ste | ||
399 | 131 | <Location "/hwpacks/ste"> | ||
400 | 132 | PythonAccessHandler apache_openid::protect | ||
401 | 133 | PythonOption handler openidteams | ||
402 | 134 | PythonOption authorized-teams-list-url "file:///etc/apache2/security/ste-private-hwpack-teams.txt" | ||
403 | 135 | PythonOption action-path "/openid/" | ||
404 | 136 | </Location> | ||
405 | 137 | |||
406 | 138 | Alias /hwpacks/ti /srv/landing-teams/hwpacks/ti | ||
407 | 139 | <Location "/hwpacks/ti"> | ||
408 | 140 | PythonAccessHandler apache_openid::protect | ||
409 | 141 | PythonOption handler openidteams | ||
410 | 142 | PythonOption authorized-teams-list-url "file:///etc/apache2/security/ti-private-hwpack-teams.txt" | ||
411 | 143 | PythonOption action-path "/openid/" | ||
412 | 144 | </Location> | ||
413 | 145 | |||
414 | 146 | Alias /hwpacks/arm /srv/landing-teams/hwpacks/arm | ||
415 | 147 | <Location "/hwpacks/arm"> | ||
416 | 148 | PythonAccessHandler apache_openid::protect | ||
417 | 149 | PythonOption handler openidteams | ||
418 | 150 | PythonOption authorized-teams-list-url "file:///etc/apache2/security/arm-private-hwpack-teams.txt" | ||
419 | 151 | PythonOption action-path "/openid/" | ||
420 | 152 | </Location> | ||
421 | 153 | |||
422 | 154 | </VirtualHost> | ||
423 | 0 | 155 | ||
424 | === added file 'apache/staging.releases.linaro.org' | |||
425 | --- apache/staging.releases.linaro.org 1970-01-01 00:00:00 +0000 | |||
426 | +++ apache/staging.releases.linaro.org 2012-08-20 15:32:38 +0000 | |||
427 | @@ -0,0 +1,39 @@ | |||
428 | 1 | <VirtualHost 91.189.95.80:80> | ||
429 | 2 | Alias /static/ /srv/staging.releases.linaro.org/linaro-license-protection/static/ | ||
430 | 3 | DocumentRoot /srv/staging.releases.linaro.org/www | ||
431 | 4 | ServerName staging.releases.linaro.org | ||
432 | 5 | ServerAdmin webmaster@linaro.org | ||
433 | 6 | CustomLog /var/log/apache2/staging.releases.linaro.org-access.log combined | ||
434 | 7 | ErrorLog /var/log/apache2/staging.releases.linaro.org-error.log | ||
435 | 8 | |||
436 | 9 | <Directory /srv/staging.releases.linaro.org/linaro-license-protection/static> | ||
437 | 10 | Order deny,allow | ||
438 | 11 | Allow from all | ||
439 | 12 | </Directory> | ||
440 | 13 | |||
441 | 14 | <Directory /srv/staging.releases.linaro.org/www> | ||
442 | 15 | Order deny,allow | ||
443 | 16 | Allow from all | ||
444 | 17 | </Directory> | ||
445 | 18 | |||
446 | 19 | XSendFile on | ||
447 | 20 | XSendFilePath /srv/staging.releases.linaro.org/www | ||
448 | 21 | |||
449 | 22 | WSGIScriptAlias / /srv/staging.releases.linaro.org/configs/wsgi/wsgi_staging_releases.py | ||
450 | 23 | WSGIDaemonProcess linaro-license-protection-staging-releases | ||
451 | 24 | |||
452 | 25 | <Directory /srv/staging.releases.linaro.org/configs/wsgi> | ||
453 | 26 | <Files wsgi_staging_releases.py> | ||
454 | 27 | Order deny,allow | ||
455 | 28 | Allow from all | ||
456 | 29 | </Files> | ||
457 | 30 | </Directory> | ||
458 | 31 | |||
459 | 32 | <Directory /> | ||
460 | 33 | IndexOptions NameWidth=* +SuppressDescription | ||
461 | 34 | Options +Indexes +FollowSymLinks | ||
462 | 35 | IndexIgnore favicon.ico HEADER.html | ||
463 | 36 | AllowOverride FileInfo Indexes | ||
464 | 37 | </Directory> | ||
465 | 38 | |||
466 | 39 | </VirtualHost> | ||
467 | 0 | 40 | ||
468 | === added file 'apache/staging.snapshots.linaro.org' | |||
469 | --- apache/staging.snapshots.linaro.org 1970-01-01 00:00:00 +0000 | |||
470 | +++ apache/staging.snapshots.linaro.org 2012-08-20 15:32:38 +0000 | |||
471 | @@ -0,0 +1,154 @@ | |||
472 | 1 | <VirtualHost 91.189.95.80:80> | ||
473 | 2 | |||
474 | 3 | Alias /static/ /srv/staging.snapshots.linaro.org/linaro-license-protection/static/ | ||
475 | 4 | DocumentRoot /srv/staging.snapshots.linaro.org/www | ||
476 | 5 | ServerName staging.snapshots.linaro.org | ||
477 | 6 | ServerAdmin webmaster@linaro.org | ||
478 | 7 | CustomLog /var/log/apache2/staging.snapshots.linaro.org-access.log combined | ||
479 | 8 | ErrorLog /var/log/apache2/staging.snapshots.linaro.org-error.log | ||
480 | 9 | |||
481 | 10 | Redirect /hwpacks https://staging.snapshots.linaro.org/hwpacks | ||
482 | 11 | Redirect /precise/restricted https://staging.snapshots.linaro.org/precise/restricted | ||
483 | 12 | |||
484 | 13 | <Directory /srv/staging.snapshots.linaro.org/linaro-license-protection/static> | ||
485 | 14 | Order deny,allow | ||
486 | 15 | Allow from all | ||
487 | 16 | </Directory> | ||
488 | 17 | |||
489 | 18 | <Directory /srv/staging.snapshots.linaro.org/www> | ||
490 | 19 | Order deny,allow | ||
491 | 20 | Allow from all | ||
492 | 21 | </Directory> | ||
493 | 22 | |||
494 | 23 | XSendFile on | ||
495 | 24 | XSendFilePath /srv/staging.snapshots.linaro.org/www | ||
496 | 25 | |||
497 | 26 | WSGIScriptAlias / /srv/staging.snapshots.linaro.org/configs/wsgi/wsgi_staging_snapshots.py | ||
498 | 27 | WSGIDaemonProcess linaro-license-protection-staging-snapshots | ||
499 | 28 | |||
500 | 29 | <Directory /srv/staging.snapshots.linaro.org/configs/wsgi> | ||
501 | 30 | <Files wsgi_staging_snapshots.py> | ||
502 | 31 | Order deny,allow | ||
503 | 32 | Allow from all | ||
504 | 33 | </Files> | ||
505 | 34 | </Directory> | ||
506 | 35 | |||
507 | 36 | <Directory /> | ||
508 | 37 | IndexOptions NameWidth=* +SuppressDescription | ||
509 | 38 | Options +Indexes +FollowSymLinks | ||
510 | 39 | IndexIgnore favicon.ico HEADER.html | ||
511 | 40 | AllowOverride FileInfo Indexes | ||
512 | 41 | </Directory> | ||
513 | 42 | |||
514 | 43 | </VirtualHost> | ||
515 | 44 | |||
516 | 45 | <VirtualHost 91.189.95.80:443> | ||
517 | 46 | |||
518 | 47 | Alias /static/ /srv/staging.snapshots.linaro.org/linaro-license-protection/static/ | ||
519 | 48 | DocumentRoot /srv/staging.snapshots.linaro.org/www | ||
520 | 49 | ServerName staging.snapshots.linaro.org | ||
521 | 50 | ServerAdmin webmaster@linaro.org | ||
522 | 51 | CustomLog /var/log/apache2/staging.snapshots.linaro.org-access.log combined | ||
523 | 52 | ErrorLog /var/log/apache2/staging.snapshots.linaro.org-error.log | ||
524 | 53 | |||
525 | 54 | SSLEngine On | ||
526 | 55 | SSLCertificateFile /etc/apache2/ssl/staging.snapshots.linaro.org.pem | ||
527 | 56 | |||
528 | 57 | <Directory /srv/staging.snapshots.linaro.org/linaro-license-protection/static> | ||
529 | 58 | Order deny,allow | ||
530 | 59 | Allow from all | ||
531 | 60 | </Directory> | ||
532 | 61 | |||
533 | 62 | <Directory /srv/staging.snapshots.linaro.org/www> | ||
534 | 63 | Order deny,allow | ||
535 | 64 | Allow from all | ||
536 | 65 | </Directory> | ||
537 | 66 | |||
538 | 67 | XSendFile on | ||
539 | 68 | XSendFilePath /srv/staging.snapshots.linaro.org/www | ||
540 | 69 | |||
541 | 70 | WSGIScriptAlias / /srv/staging.snapshots.linaro.org/configs/wsgi/wsgi_staging_snapshots.py | ||
542 | 71 | WSGIDaemonProcess linaro-license-protection-staging-snapshots-ssl | ||
543 | 72 | |||
544 | 73 | <Directory /srv/staging.snapshots.linaro.org/configs/wsgi> | ||
545 | 74 | <Files wsgi_staging_snapshots.py> | ||
546 | 75 | Order deny,allow | ||
547 | 76 | Allow from all | ||
548 | 77 | </Files> | ||
549 | 78 | </Directory> | ||
550 | 79 | |||
551 | 80 | <Directory /> | ||
552 | 81 | IndexOptions NameWidth=* +SuppressDescription | ||
553 | 82 | Options +Indexes +FollowSymLinks | ||
554 | 83 | IndexIgnore favicon.ico HEADER.html | ||
555 | 84 | AllowOverride FileInfo Indexes | ||
556 | 85 | </Directory> | ||
557 | 86 | |||
558 | 87 | <Location "/hwpacks"> | ||
559 | 88 | PythonAccessHandler apache_openid::protect | ||
560 | 89 | PythonOption handler openidteams | ||
561 | 90 | PythonOption authorized-teams-list-url "file:///etc/apache2/security/all-private-hwpack-teams.txt" | ||
562 | 91 | PythonOption action-path "/openid/" | ||
563 | 92 | </Location> | ||
564 | 93 | |||
565 | 94 | <Location "/openid/"> | ||
566 | 95 | Allow from all | ||
567 | 96 | SetHandler mod_python | ||
568 | 97 | PythonAccessHandler apache_openid::protect | ||
569 | 98 | PythonOption handler openidteams | ||
570 | 99 | PythonOption store-type file | ||
571 | 100 | PythonOption store-directory /var/cache/apache2/openid/ | ||
572 | 101 | PythonOption allowed-op-list-url "file:///etc/apache2/security/allowed-ops.txt" | ||
573 | 102 | PythonOption authorized-teams-list-url "file:///etc/apache2/security/all-private-hwpack-teams.txt" | ||
574 | 103 | PythonOption authorized-teams-list-url "file:///etc/apache2/security/linaro-teams.txt" | ||
575 | 104 | PythonOption action-path "/openid/" | ||
576 | 105 | </Location> | ||
577 | 106 | |||
578 | 107 | <Location "/precise/restricted"> | ||
579 | 108 | PythonAccessHandler apache_openid::protect | ||
580 | 109 | PythonOption handler openidteams | ||
581 | 110 | PythonOption authorized-teams-list-url "file:///etc/apache2/security/linaro-teams.txt" | ||
582 | 111 | PythonOption action-path "/openid/" | ||
583 | 112 | </Location> | ||
584 | 113 | |||
585 | 114 | Alias /hwpacks/freescale /srv/landing-teams/hwpacks/freescale | ||
586 | 115 | <Location "/hwpacks/freescale"> | ||
587 | 116 | PythonAccessHandler apache_openid::protect | ||
588 | 117 | PythonOption handler openidteams | ||
589 | 118 | PythonOption authorized-teams-list-url "file:///etc/apache2/security/freescale-private-hwpack-teams.txt" | ||
590 | 119 | PythonOption action-path "/openid/" | ||
591 | 120 | </Location> | ||
592 | 121 | |||
593 | 122 | Alias /hwpacks/samsung /srv/landing-teams/hwpacks/samsung | ||
594 | 123 | <Location "/hwpacks/samsung"> | ||
595 | 124 | PythonAccessHandler apache_openid::protect | ||
596 | 125 | PythonOption handler openidteams | ||
597 | 126 | PythonOption authorized-teams-list-url "file:///etc/apache2/security/samsung-private-hwpack-teams.txt" | ||
598 | 127 | PythonOption action-path "/openid/" | ||
599 | 128 | </Location> | ||
600 | 129 | |||
601 | 130 | Alias /hwpacks/ste /srv/landing-teams/hwpacks/ste | ||
602 | 131 | <Location "/hwpacks/ste"> | ||
603 | 132 | PythonAccessHandler apache_openid::protect | ||
604 | 133 | PythonOption handler openidteams | ||
605 | 134 | PythonOption authorized-teams-list-url "file:///etc/apache2/security/ste-private-hwpack-teams.txt" | ||
606 | 135 | PythonOption action-path "/openid/" | ||
607 | 136 | </Location> | ||
608 | 137 | |||
609 | 138 | Alias /hwpacks/ti /srv/landing-teams/hwpacks/ti | ||
610 | 139 | <Location "/hwpacks/ti"> | ||
611 | 140 | PythonAccessHandler apache_openid::protect | ||
612 | 141 | PythonOption handler openidteams | ||
613 | 142 | PythonOption authorized-teams-list-url "file:///etc/apache2/security/ti-private-hwpack-teams.txt" | ||
614 | 143 | PythonOption action-path "/openid/" | ||
615 | 144 | </Location> | ||
616 | 145 | |||
617 | 146 | Alias /hwpacks/arm /srv/landing-teams/hwpacks/arm | ||
618 | 147 | <Location "/hwpacks/arm"> | ||
619 | 148 | PythonAccessHandler apache_openid::protect | ||
620 | 149 | PythonOption handler openidteams | ||
621 | 150 | PythonOption authorized-teams-list-url "file:///etc/apache2/security/arm-private-hwpack-teams.txt" | ||
622 | 151 | PythonOption action-path "/openid/" | ||
623 | 152 | </Location> | ||
624 | 153 | |||
625 | 154 | </VirtualHost> | ||
626 | 0 | 155 | ||
627 | === added directory 'django' | |||
628 | === added file 'django/settings_releases.py' | |||
629 | --- django/settings_releases.py 1970-01-01 00:00:00 +0000 | |||
630 | +++ django/settings_releases.py 2012-08-20 15:32:38 +0000 | |||
631 | @@ -0,0 +1,22 @@ | |||
632 | 1 | # Settings for releases.linaro.org. | ||
633 | 2 | |||
634 | 3 | from settings import * | ||
635 | 4 | |||
636 | 5 | DEBUG = False | ||
637 | 6 | |||
638 | 7 | DATABASES = { | ||
639 | 8 | 'default': { | ||
640 | 9 | 'ENGINE': 'django.db.backends.sqlite3', | ||
641 | 10 | 'NAME': '/srv/releases.linaro.org/db/licenses.db', | ||
642 | 11 | 'USER': '', | ||
643 | 12 | 'PASSWORD': '', | ||
644 | 13 | 'HOST': '', | ||
645 | 14 | 'PORT': '', | ||
646 | 15 | } | ||
647 | 16 | } | ||
648 | 17 | |||
649 | 18 | TEMPLATE_DIRS = ( | ||
650 | 19 | os.path.join(PROJECT_ROOT, "templates_releases" ), | ||
651 | 20 | os.path.join(PROJECT_ROOT, "templates" ), | ||
652 | 21 | ) | ||
653 | 22 | SERVED_PATHS = ['/srv/releases.linaro.org/www'] | ||
654 | 0 | 23 | ||
655 | === added file 'django/settings_snapshots.py' | |||
656 | --- django/settings_snapshots.py 1970-01-01 00:00:00 +0000 | |||
657 | +++ django/settings_snapshots.py 2012-08-20 15:32:38 +0000 | |||
658 | @@ -0,0 +1,22 @@ | |||
659 | 1 | # Settings for snapshots.linaro.org. | ||
660 | 2 | |||
661 | 3 | from settings import * | ||
662 | 4 | |||
663 | 5 | DEBUG = False | ||
664 | 6 | |||
665 | 7 | DATABASES = { | ||
666 | 8 | 'default': { | ||
667 | 9 | 'ENGINE': 'django.db.backends.sqlite3', | ||
668 | 10 | 'NAME': '/srv/snapshots.linaro.org/db/licenses.db', | ||
669 | 11 | 'USER': '', | ||
670 | 12 | 'PASSWORD': '', | ||
671 | 13 | 'HOST': '', | ||
672 | 14 | 'PORT': '', | ||
673 | 15 | } | ||
674 | 16 | } | ||
675 | 17 | |||
676 | 18 | TEMPLATE_DIRS = ( | ||
677 | 19 | os.path.join(PROJECT_ROOT, "templates_snapshots" ), | ||
678 | 20 | os.path.join(PROJECT_ROOT, "templates" ), | ||
679 | 21 | ) | ||
680 | 22 | SERVED_PATHS = ['/srv/snapshots.linaro.org/www'] | ||
681 | 0 | 23 | ||
682 | === added file 'django/settings_staging_releases.py' | |||
683 | --- django/settings_staging_releases.py 1970-01-01 00:00:00 +0000 | |||
684 | +++ django/settings_staging_releases.py 2012-08-20 15:32:38 +0000 | |||
685 | @@ -0,0 +1,20 @@ | |||
686 | 1 | # Settings for staging.releases.linaro.org. | ||
687 | 2 | |||
688 | 3 | from settings import * | ||
689 | 4 | |||
690 | 5 | DATABASES = { | ||
691 | 6 | 'default': { | ||
692 | 7 | 'ENGINE': 'django.db.backends.sqlite3', | ||
693 | 8 | 'NAME': '/srv/staging.releases.linaro.org/db/licenses.db', | ||
694 | 9 | 'USER': '', | ||
695 | 10 | 'PASSWORD': '', | ||
696 | 11 | 'HOST': '', | ||
697 | 12 | 'PORT': '', | ||
698 | 13 | } | ||
699 | 14 | } | ||
700 | 15 | |||
701 | 16 | TEMPLATE_DIRS = ( | ||
702 | 17 | os.path.join(PROJECT_ROOT, "templates_releases" ), | ||
703 | 18 | os.path.join(PROJECT_ROOT, "templates" ), | ||
704 | 19 | ) | ||
705 | 20 | SERVED_PATHS = ['/srv/staging.releases.linaro.org/www'] | ||
706 | 0 | 21 | ||
707 | === added file 'django/settings_staging_snapshots.py' | |||
708 | --- django/settings_staging_snapshots.py 1970-01-01 00:00:00 +0000 | |||
709 | +++ django/settings_staging_snapshots.py 2012-08-20 15:32:38 +0000 | |||
710 | @@ -0,0 +1,20 @@ | |||
711 | 1 | # Settings for staging.snapshots.linaro.org. | ||
712 | 2 | |||
713 | 3 | from settings import * | ||
714 | 4 | |||
715 | 5 | DATABASES = { | ||
716 | 6 | 'default': { | ||
717 | 7 | 'ENGINE': 'django.db.backends.sqlite3', | ||
718 | 8 | 'NAME': '/srv/staging.snapshots.linaro.org/db/licenses.db', | ||
719 | 9 | 'USER': '', | ||
720 | 10 | 'PASSWORD': '', | ||
721 | 11 | 'HOST': '', | ||
722 | 12 | 'PORT': '', | ||
723 | 13 | } | ||
724 | 14 | } | ||
725 | 15 | |||
726 | 16 | TEMPLATE_DIRS = ( | ||
727 | 17 | os.path.join(PROJECT_ROOT, "templates_snapshots" ), | ||
728 | 18 | os.path.join(PROJECT_ROOT, "templates" ), | ||
729 | 19 | ) | ||
730 | 20 | SERVED_PATHS = ['/srv/staging.snapshots.linaro.org/www'] | ||
731 | 0 | 21 | ||
732 | === added directory 'wsgi' | |||
733 | === added file 'wsgi/wsgi_releases.py' | |||
734 | --- wsgi/wsgi_releases.py 1970-01-01 00:00:00 +0000 | |||
735 | +++ wsgi/wsgi_releases.py 2012-08-20 15:32:38 +0000 | |||
736 | @@ -0,0 +1,19 @@ | |||
737 | 1 | """ | ||
738 | 2 | WSGI config for license_protected_downloads project. | ||
739 | 3 | |||
740 | 4 | This file configures WSGI for releases.linaro.org. | ||
741 | 5 | """ | ||
742 | 6 | import os | ||
743 | 7 | import sys | ||
744 | 8 | sys.path.append("/usr/lib/python2.7/dist-packages") | ||
745 | 9 | sys.path.append("/usr/lib/pymodules/python2.7") | ||
746 | 10 | sys.path.append("/usr/lib/python2.7") | ||
747 | 11 | |||
748 | 12 | sys.path.append("/srv/releases.linaro.org") | ||
749 | 13 | sys.path.append("/srv/releases.linaro.org/linaro-license-protection") | ||
750 | 14 | sys.path.append("/srv/releases.linaro.org/configs/django") | ||
751 | 15 | |||
752 | 16 | os.environ["DJANGO_SETTINGS_MODULE"] = "settings_releases" | ||
753 | 17 | |||
754 | 18 | import django.core.handlers.wsgi | ||
755 | 19 | application = django.core.handlers.wsgi.WSGIHandler() | ||
756 | 0 | 20 | ||
757 | === added file 'wsgi/wsgi_snapshots.py' | |||
758 | --- wsgi/wsgi_snapshots.py 1970-01-01 00:00:00 +0000 | |||
759 | +++ wsgi/wsgi_snapshots.py 2012-08-20 15:32:38 +0000 | |||
760 | @@ -0,0 +1,19 @@ | |||
761 | 1 | """ | ||
762 | 2 | WSGI config for license_protected_downloads project. | ||
763 | 3 | |||
764 | 4 | This file configures WSGI for snapshots.linaro.org. | ||
765 | 5 | """ | ||
766 | 6 | import os | ||
767 | 7 | import sys | ||
768 | 8 | sys.path.append("/usr/lib/python2.7/dist-packages") | ||
769 | 9 | sys.path.append("/usr/lib/pymodules/python2.7") | ||
770 | 10 | sys.path.append("/usr/lib/python2.7") | ||
771 | 11 | |||
772 | 12 | sys.path.append("/srv/snapshots.linaro.org") | ||
773 | 13 | sys.path.append("/srv/snapshots.linaro.org/linaro-license-protection") | ||
774 | 14 | sys.path.append("/srv/snapshots.linaro.org/configs/django") | ||
775 | 15 | |||
776 | 16 | os.environ["DJANGO_SETTINGS_MODULE"] = "settings_snapshots" | ||
777 | 17 | |||
778 | 18 | import django.core.handlers.wsgi | ||
779 | 19 | application = django.core.handlers.wsgi.WSGIHandler() | ||
780 | 0 | 20 | ||
781 | === added file 'wsgi/wsgi_staging_releases.py' | |||
782 | --- wsgi/wsgi_staging_releases.py 1970-01-01 00:00:00 +0000 | |||
783 | +++ wsgi/wsgi_staging_releases.py 2012-08-20 15:32:38 +0000 | |||
784 | @@ -0,0 +1,19 @@ | |||
785 | 1 | """ | ||
786 | 2 | WSGI config for license_protected_downloads project. | ||
787 | 3 | |||
788 | 4 | This file configures WSGI for staging.releases.linaro.org. | ||
789 | 5 | """ | ||
790 | 6 | import os | ||
791 | 7 | import sys | ||
792 | 8 | sys.path.append("/usr/lib/python2.7/dist-packages") | ||
793 | 9 | sys.path.append("/usr/lib/pymodules/python2.7") | ||
794 | 10 | sys.path.append("/usr/lib/python2.7") | ||
795 | 11 | |||
796 | 12 | sys.path.append("/srv/staging.releases.linaro.org") | ||
797 | 13 | sys.path.append("/srv/staging.releases.linaro.org/linaro-license-protection") | ||
798 | 14 | sys.path.append("/srv/staging.releases.linaro.org/configs/django") | ||
799 | 15 | |||
800 | 16 | os.environ["DJANGO_SETTINGS_MODULE"] = "settings_staging_releases" | ||
801 | 17 | |||
802 | 18 | import django.core.handlers.wsgi | ||
803 | 19 | application = django.core.handlers.wsgi.WSGIHandler() | ||
804 | 0 | 20 | ||
805 | === added file 'wsgi/wsgi_staging_snapshots.py' | |||
806 | --- wsgi/wsgi_staging_snapshots.py 1970-01-01 00:00:00 +0000 | |||
807 | +++ wsgi/wsgi_staging_snapshots.py 2012-08-20 15:32:38 +0000 | |||
808 | @@ -0,0 +1,19 @@ | |||
809 | 1 | """ | ||
810 | 2 | WSGI config for license_protected_downloads project. | ||
811 | 3 | |||
812 | 4 | This file configures WSGI for staging.snapshots.linaro.org. | ||
813 | 5 | """ | ||
814 | 6 | import os | ||
815 | 7 | import sys | ||
816 | 8 | sys.path.append("/usr/lib/python2.7/dist-packages") | ||
817 | 9 | sys.path.append("/usr/lib/pymodules/python2.7") | ||
818 | 10 | sys.path.append("/usr/lib/python2.7") | ||
819 | 11 | |||
820 | 12 | sys.path.append("/srv/staging.snapshots.linaro.org") | ||
821 | 13 | sys.path.append("/srv/staging.snapshots.linaro.org/linaro-license-protection") | ||
822 | 14 | sys.path.append("/srv/staging.snapshots.linaro.org/configs/django") | ||
823 | 15 | |||
824 | 16 | os.environ["DJANGO_SETTINGS_MODULE"] = "settings_staging_snapshots" | ||
825 | 17 | |||
826 | 18 | import django.core.handlers.wsgi | ||
827 | 19 | application = django.core.handlers.wsgi.WSGIHandler() |
You should propose against ~linaro- infrastructure/ linaro- license- protection/ configs :)