Files
mesh-configs/skills/devops/nginx-vhost-deployment/templates/nginx-vhost.conf
T

21 lines
484 B
Plaintext

server {
listen 80;
listen [::]:80;
server_name {{DOMAIN}} www.{{DOMAIN}};
root /var/www/{{DOMAIN}}/html;
index index.html index.htm;
access_log /var/www/{{DOMAIN}}/logs/access.log;
error_log /var/www/{{DOMAIN}}/logs/error.log;
location / {
try_files $uri $uri/ =404;
}
# location /api/ {
# proxy_pass http://localhost:3000;
# proxy_set_header Host $host;
# proxy_set_header X-Real-IP $remote_addr;
# }
}