Adding current deploy configuration
This commit is contained in:
1 parent
39c3726981
commit
3c4d5eda5b
5 files changed
+107
No files matched your search
@@ -0,0 +1,27 @@
|
||||
server {
|
||||
listen 3100;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
# If nginx can't find a file, fallback to the homepage.
|
||||
location @root {
|
||||
rewrite .* / redirect;
|
||||
}
|
||||
|
||||
include /etc/nginx/basic.conf;
|
||||
}
|
||||
Reference in new issue
Block a user