Protopuch / raccoon-frontend

Raccoon - calculator with API. Frontend
Apache License 2.0
2 stars 0 forks source link

Set up frontend nginx #1

Closed Protopuch closed 5 years ago

Protopuch commented 6 years ago
  1. Create VM
  2. Set up and configure nginx
Protopuch commented 5 years ago

Configure environment: apt install -y nginx Static content available on VM 206.189.99.157:/var/www/static/images Entire nginx configuration on /etc/nginx/sites-available/default: server { listen 80 default_server; listen [::]:80 default_server;

root /var/www/static;

index index.html index.htm index.nginx-debian.html;

server_name _;

location / {
    try_files $uri $uri/ =404;
}
location ~ \.(gif|jpg|png)$ {
    root /var/www/static/images;
}

}