Skip to content

Commit

Permalink
infra: Add nginx config
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexITC committed Jan 15, 2018
1 parent c8a1cb0 commit fd426b5
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions infra/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
server {
listen 80 default_server;
listen [::]:80 default_server;

root /var/www/html;
index index.html;

server_name cryptocoinalerts.net;

# the backend api
location /api {
rewrite ^/api/(.*) /$1 break;
proxy_pass http://127.0.0.1:9000;
}

// static assets (front-end)
location / {
try_files $uri $uri/ /index.html;
}

# certbot ssl config goes here

}

0 comments on commit fd426b5

Please sign in to comment.