@@ -2,8 +2,11 @@ server { | |||||
server_name {{ server_name }}; | server_name {{ server_name }}; | ||||
listen {{ ssl_port }} ssl http2; | listen {{ ssl_port }} ssl http2; | ||||
root /home/bubble/site/; | |||||
index index.html; | |||||
location / { | location / { | ||||
root /home/bubble/site/; | |||||
try_files $uri /index.html =404; | |||||
} | } | ||||
location /api { | location /api { | ||||
@@ -2,8 +2,11 @@ server { | |||||
server_name {{ server_alias }}; | server_name {{ server_alias }}; | ||||
listen {{ ssl_port }} ssl http2; | listen {{ ssl_port }} ssl http2; | ||||
root /home/bubble/site/; | |||||
index index.html; | |||||
location / { | location / { | ||||
root /home/bubble/site/; | |||||
try_files $uri /index.html =404; | |||||
} | } | ||||
location /api { | location /api { | ||||
@@ -2,8 +2,11 @@ server { | |||||
listen 80; | listen 80; | ||||
server_name {{ server_name }}; | server_name {{ server_name }}; | ||||
root /home/bubble/site/; | |||||
index index.html; | |||||
location / { | location / { | ||||
root /home/bubble/site/; | |||||
try_files $uri /index.html =404; | |||||
} | } | ||||
location /api { | location /api { | ||||
@@ -2,8 +2,11 @@ server { | |||||
listen 80; | listen 80; | ||||
server_name {{ server_alias }}; | server_name {{ server_alias }}; | ||||
root /home/bubble/site/; | |||||
index index.html; | |||||
location / { | location / { | ||||
root /home/bubble/site/; | |||||
try_files $uri /index.html =404; | |||||
} | } | ||||
location /api { | location /api { | ||||