| author | Vincent Tondellier <tonton+hg@team1664.org> |
| Sun, 18 Dec 2016 20:14:31 +0100 | |
| changeset 121 | 5a99941ed0ca |
| parent 111 | f827f3c50dcf |
| permissions | -rw-r--r-- |
|
111
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
1 |
server {
|
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
2 |
server_name crashtest crashtest.*; |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
3 |
listen [::]:80; |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
4 |
#listen [::]:443 ssl; |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
5 |
|
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
6 |
error_log /var/log/nginx/error-crashtest.log error; |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
7 |
access_log /var/log/nginx/access-crashtest.log; |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
8 |
|
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
9 |
root /usr/share/perl5/CrashTest/files/public/; |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
10 |
try_files $uri @crashtest; |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
11 |
|
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
12 |
expires 15d; |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
13 |
|
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
14 |
location @crashtest {
|
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
15 |
expires off; |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
16 |
proxy_pass http://127.0.0.1:3000; |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
17 |
proxy_http_version 1.1; |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
18 |
proxy_read_timeout 120s; |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
19 |
proxy_set_header Host $host; |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
20 |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
21 |
proxy_set_header X-Forwarded-HTTPS 0; |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
22 |
} |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
23 |
|
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
24 |
} |
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
25 |
|
|
f827f3c50dcf
Add examples (config, systemd and uploader)
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
26 |
# vim:ft=nginx: |