Add nginx.conf
This commit is contained in:
parent
b200f61868
commit
5fa0b0c4b9
1 changed files with 19 additions and 0 deletions
19
nginx.conf
Normal file
19
nginx.conf
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
server {
|
||||
listen 80 default_server;
|
||||
server_name _;
|
||||
#server_name example.com;
|
||||
|
||||
root /var/www/wg/;
|
||||
index index.html;
|
||||
|
||||
#location / {
|
||||
# try_files $uri $uri/ /index.html;
|
||||
#}
|
||||
location /api/ {
|
||||
proxy_pass http://127.0.0.1:5000/;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue