Last active
December 15, 2015 22:49
-
-
Save Daniel15/5335819 to your computer and use it in GitHub Desktop.
Nginx configuration for mystatus.im
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Redirect away from www subdomain | |
server { | |
server_name www.mystatus.im; | |
return 301 http://mystatus.im$request_uri; | |
} | |
server { | |
server_name mystatus.im; | |
root /var/www/mystatus.im/site/public/; | |
location / { | |
try_files $uri @upstream; | |
} | |
# Serve pre-minified CSS and JS if available | |
location ~* ^/(css|js)/ { | |
root /var/www/mystatus.im/builtAssets/; | |
try_files $uri @upstream; | |
} | |
location @upstream { | |
proxy_pass http://127.0.0.1:8083; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment