Skip to content

Instantly share code, notes, and snippets.

@Daniel15
Last active December 15, 2015 22:49
Show Gist options
  • Save Daniel15/5335819 to your computer and use it in GitHub Desktop.
Save Daniel15/5335819 to your computer and use it in GitHub Desktop.
Nginx configuration for mystatus.im
# 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