Rev | Line | |
---|
[68] | 1 | server {
|
---|
| 2 | listen 80;
|
---|
| 3 | listen [::]:80;
|
---|
[71] | 4 | server_name mai.example.org;
|
---|
[68] | 5 |
|
---|
| 6 | location / {
|
---|
| 7 | return 301 https://$host$request_uri;
|
---|
| 8 | }
|
---|
| 9 | }
|
---|
| 10 |
|
---|
| 11 | server {
|
---|
| 12 | listen 443 ssl;
|
---|
| 13 | listen [::]:443 ssl;
|
---|
[71] | 14 | server_name mai.example.org;
|
---|
[68] | 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.