source:
code/trunk/example/mai.nginx@
71
Last change on this file since 71 was 71, checked in by , 7 weeks ago | |
---|---|
File size: 455 bytes |
Line | |
---|---|
1 | server { |
2 | listen 80; |
3 | listen [::]:80; |
4 | server_name mai.example.org; |
5 | |
6 | location / { |
7 | return 301 https://$host$request_uri; |
8 | } |
9 | } |
10 | |
11 | server { |
12 | listen 443 ssl; |
13 | listen [::]:443 ssl; |
14 | server_name mai.example.org; |
15 | |
16 | ssl_certificate /path/to/fullchain.pem; |
17 | ssl_certificate_key /path/to/privkey.pem; |
18 | |
19 | location / { |
20 | proxy_set_header X-Forwarded-For $remote_addr; |
21 | proxy_pass http://localhost:5000; |
22 | } |
23 | } |
Note:
See TracBrowser
for help on using the repository browser.