Added nginx config info
Signed-off-by: James Ketrenos <james_eikona@ketrenos.com>
This commit is contained in:
parent
ddfefef8b1
commit
d724c4788e
17
README.md
17
README.md
@ -105,10 +105,21 @@ Install the following into your nginx server configuration:
|
||||
|
||||
```nginx
|
||||
location /ketr.ketran {
|
||||
alias ${BASEPATH};
|
||||
root /var/www/ketrenos.com;
|
||||
index unresolvable-file-html.html;
|
||||
try_files $uri @index;
|
||||
}
|
||||
|
||||
location ~ /ketr.ketran/api/.* {
|
||||
# This seperate location is so the no cache policy only applies to the index and nothing else.
|
||||
location @index {
|
||||
root /var/www/ketrenos.com/ketr.ketran;
|
||||
add_header Cache-Control no-cache;
|
||||
expires 0;
|
||||
try_files /index.html =404;
|
||||
}
|
||||
|
||||
location /ketr.ketran/api {
|
||||
proxy_pass http://192.168.1.78:8930;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
@ -119,9 +130,7 @@ Install the following into your nginx server configuration:
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_pass http://localhost:8930;
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
Add security tokens in ketr.ketran/config/local.json:
|
||||
|
Loading…
x
Reference in New Issue
Block a user