elm-rancher-deploy
Version:
Elm script to deploy on Rancher
21 lines (16 loc) • 493 B
Plain Text
server {
root /var/www;
index index.html index.htm;
# Make site accessible from http://localhost/
server_name localhost;
# Add 1 week expires header for static assets
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires 1w;
}
location / {
# First attempt to serve request as file, then
# as directory, then fall back to redirecting to index.html
try_files $uri $uri/ /index.html;
}
include /etc/nginx/basic.conf;
}