Fixed the nginx configuration on README.md
This commit is contained in:
parent
e8f03c430c
commit
5aece18736
1 changed files with 5 additions and 1 deletions
|
@ -33,6 +33,7 @@ the default bind Mojolicious uses.
|
||||||
HTTP server, you're on your own.)
|
HTTP server, you're on your own.)
|
||||||
|
|
||||||
~~~conf
|
~~~conf
|
||||||
|
|
||||||
server {
|
server {
|
||||||
server_name sakisafe.whatever.tld;
|
server_name sakisafe.whatever.tld;
|
||||||
listen 443 ssl;
|
listen 443 ssl;
|
||||||
|
@ -40,7 +41,10 @@ server {
|
||||||
# ssl configuration here
|
# ssl configuration here
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://127.0.0.1:3000$request_uri;
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-for $remote_addr;
|
||||||
|
proxy_pass http://127.0.0.1:3000$request_uri;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
~~~
|
~~~
|
||||||
|
|
Loading…
Add table
Reference in a new issue