You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
472 B
Plaintext
27 lines
472 B
Plaintext
server {
|
|
listen 80;
|
|
server_name localhost;
|
|
add_header 'Access-Control-Allow-Origin' '*';
|
|
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
location / {
|
|
root /home/xydl/jkpg/static;
|
|
index index.html;
|
|
}
|
|
|
|
location /jkpg-api/ {
|
|
proxy_pass http://127.0.0.1:8080/;
|
|
}
|
|
|
|
|
|
location /filestore {
|
|
alias /home/xydl/jkpg/filestore;
|
|
autoindex on;
|
|
}
|
|
|
|
|
|
|
|
}
|