Bläddra i källkod

fix nginx config for single-page app

tags/v0.1.8
Jonathan Cobb 5 år sedan
förälder
incheckning
ca0b1d7730
4 ändrade filer med 16 tillägg och 4 borttagningar
  1. +4
    -1
      automation/roles/nginx/templates/site_node.conf.j2
  2. +4
    -1
      automation/roles/nginx/templates/site_node_alias.conf.j2
  3. +4
    -1
      automation/roles/nginx/templates/site_sage.conf.j2
  4. +4
    -1
      automation/roles/nginx/templates/site_sage_alias.conf.j2

+ 4
- 1
automation/roles/nginx/templates/site_node.conf.j2 Visa fil

@@ -2,8 +2,11 @@ server {
server_name {{ server_name }};
listen {{ ssl_port }} ssl http2;

root /home/bubble/site/;
index index.html;

location / {
root /home/bubble/site/;
try_files $uri /index.html =404;
}

location /api {


+ 4
- 1
automation/roles/nginx/templates/site_node_alias.conf.j2 Visa fil

@@ -2,8 +2,11 @@ server {
server_name {{ server_alias }};
listen {{ ssl_port }} ssl http2;

root /home/bubble/site/;
index index.html;

location / {
root /home/bubble/site/;
try_files $uri /index.html =404;
}

location /api {


+ 4
- 1
automation/roles/nginx/templates/site_sage.conf.j2 Visa fil

@@ -2,8 +2,11 @@ server {
listen 80;
server_name {{ server_name }};

root /home/bubble/site/;
index index.html;

location / {
root /home/bubble/site/;
try_files $uri /index.html =404;
}

location /api {


+ 4
- 1
automation/roles/nginx/templates/site_sage_alias.conf.j2 Visa fil

@@ -2,8 +2,11 @@ server {
listen 80;
server_name {{ server_alias }};

root /home/bubble/site/;
index index.html;

location / {
root /home/bubble/site/;
try_files $uri /index.html =404;
}

location /api {


Laddar…
Avbryt
Spara