此nginx.conf
有什么问题?
我必须在某个地方进行更改,但仍然无法工作..
upstream strapi {
server localhost:1337 max_fails=1 fail_timeout=5s;
}
server {
# Listen HTTP
listen 80 default_server;
listen [::]:80 default_server;
server_name sh**rk.app;
# Proxy Config
location / {
try_files $uri $uri/ @strapi;
}
location @strapi{
proxy_pass http://strapi;
}
}