Last change
on this file since 69 was 68, checked in by yakumo.izuru, 16 months ago |
インストール手順の更新、例の追加、リミッターの再構成
Signed-off-by: Izuru Yakumo <yakumo.izuru@…>
|
File size:
455 bytes
|
Line | |
---|
1 | server {
|
---|
2 | listen 80;
|
---|
3 | listen [::]:80;
|
---|
4 | server_name mai.example.com;
|
---|
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.com;
|
---|
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.