OLD | NEW |
1 upstream discourse { | 1 upstream discourse { |
2 server unix:///tmp/discourse-thin.sock; | 2 server unix:///tmp/discourse-thin.sock; |
3 } | 3 } |
4 | 4 |
5 server { | 5 server { |
| 6 listen 80; |
6 listen [::]:80; | 7 listen [::]:80; |
7 server_name intraforum.adblockplus.org; | 8 server_name intraforum.adblockplus.org; |
8 location / { | 9 location / { |
9 rewrite (.*) https://intraforum.adblockplus.org$1 permanent; | 10 rewrite (.*) https://intraforum.adblockplus.org$1 permanent; |
10 } | 11 } |
11 } | 12 } |
12 server { | 13 server { |
13 listen [::]:443 ssl; | 14 listen [::]:443 ssl; |
14 server_name intraforum.adblockplus.org; | 15 server_name intraforum.adblockplus.org; |
15 ssl_certificate sites-available/adblockplus.org_sslcert.pem; | 16 ssl_certificate sites-available/adblockplus.org_sslcert.pem; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 proxy_set_header X-Real-IP $remote_addr; | 48 proxy_set_header X-Real-IP $remote_addr; |
48 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | 49 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
49 proxy_set_header X-Forwarded-Proto $scheme; | 50 proxy_set_header X-Forwarded-Proto $scheme; |
50 proxy_set_header Host $http_host; | 51 proxy_set_header Host $http_host; |
51 if (!-f $request_filename) { | 52 if (!-f $request_filename) { |
52 proxy_pass http://discourse; | 53 proxy_pass http://discourse; |
53 break; | 54 break; |
54 } | 55 } |
55 } | 56 } |
56 } | 57 } |
OLD | NEW |