インストール手順の更新、例の追加、リミッターの再構成
Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja> git-svn-id: file:///srv/svn/repo/mai/trunk@68 e410bdd4-646f-c54f-a7ce-fffcc4f439ae
This commit is contained in:
16
example/mai.h2o.yml
Normal file
16
example/mai.h2o.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
hosts:
|
||||
"mai.example.net:80":
|
||||
listen:
|
||||
port: 80
|
||||
paths:
|
||||
"/":
|
||||
redirect: mai.example.net:443
|
||||
"mai.example.net:443":
|
||||
listen:
|
||||
port: 443
|
||||
ssl:
|
||||
certificate-file: /path/to/fullchain.pem
|
||||
key-file: /path/to/privkey.pem
|
||||
paths:
|
||||
"/":
|
||||
proxy.reverse: "http://localhost:5000"
|
||||
23
example/mai.nginx
Normal file
23
example/mai.nginx
Normal file
@@ -0,0 +1,23 @@
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name mai.example.com;
|
||||
|
||||
location / {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
listen [::]:443 ssl;
|
||||
server_name mai.example.com;
|
||||
|
||||
ssl_certificate /path/to/fullchain.pem;
|
||||
ssl_certificate_key /path/to/privkey.pem;
|
||||
|
||||
location / {
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_pass http://localhost:5000;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user