static
?403 Forbidden
upstream api_data {
server 127.0.0.1:7777;
}
server {
listen 80;
server_name example.com;
location / {
proxy_pass http://api_data/;
# client_max_body_size 50M;
}
location /static/ {
alias /home/vasya/api-cms-server/public/uploads/;
gzip_static on;
expires max;
add_header Cache-Control public;
}
}
proxy_pass http://api_data/;
location / {
proxy_pass http://api_data;
}