From 8a9d4eb602e8a18effb71ac519524631fe9263a1 Mon Sep 17 00:00:00 2001 From: nolim1t Date: Tue, 10 Mar 2020 11:39:13 +0700 Subject: [PATCH] Add invoicer to nginx --- nginx/conf.d/default.conf | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/nginx/conf.d/default.conf b/nginx/conf.d/default.conf index 91d489e..556770c 100644 --- a/nginx/conf.d/default.conf +++ b/nginx/conf.d/default.conf @@ -4,5 +4,13 @@ server { server_name _; root /etc/nginx/www; index index.html; - try_files $uri /index.html; + + location / { + try_files $uri $uri/index.html =404; + } + + location /invoicer/ { + add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; + proxy_pass http://localhost:8181/api/; + } }