Преглед на файлове

fix nginx config for single-page app

tags/v0.1.8
Jonathan Cobb преди 5 години
родител
ревизия
ca0b1d7730
променени са 4 файла, в които са добавени 16 реда и са изтрити 4 реда
  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 Целия файл

@@ -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 Целия файл

@@ -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 Целия файл

@@ -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 Целия файл

@@ -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 {


Зареждане…
Отказ
Запис