let's see if this works
This commit is contained in:
parent
88afb77abf
commit
c2da2a8058
5 changed files with 10 additions and 16 deletions
|
@ -1,10 +1,11 @@
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80 default_server;
|
||||||
server_name zappyzep.xyz;
|
server_name _;
|
||||||
|
|
||||||
# Using a variable here stops nginx from crashing if the dev container is restarted or becomes otherwise unavailable
|
# Using a variable here stops nginx from crashing if the dev container is restarted or becomes otherwise unavailable
|
||||||
set $backend_upstream "http://api:3001";
|
set $backend_upstream "http://api:3001";
|
||||||
set $dashboard_upstream "http://dashboard:3002";
|
set $dashboard_upstream "http://dashboard:3002";
|
||||||
|
set $newdashboard_upstream "http://revampdashboard:3000";
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
# Using a variable in proxy_pass also requires resolver to be set.
|
# Using a variable in proxy_pass also requires resolver to be set.
|
||||||
|
@ -12,6 +13,11 @@ server {
|
||||||
resolver 127.0.0.11;
|
resolver 127.0.0.11;
|
||||||
proxy_pass $dashboard_upstream$uri$is_args$args;
|
proxy_pass $dashboard_upstream$uri$is_args$args;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /new {
|
||||||
|
resolver 127.0.0.11;
|
||||||
|
proxy_pass $newdashboard_upstream$uri$is_args$args;
|
||||||
|
}
|
||||||
|
|
||||||
location /api {
|
location /api {
|
||||||
resolver 127.0.0.11;
|
resolver 127.0.0.11;
|
||||||
|
@ -21,15 +27,3 @@ server {
|
||||||
client_max_body_size 200M;
|
client_max_body_size 200M;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
|
||||||
listen 80;
|
|
||||||
server_name new.zappyzep.xyz;
|
|
||||||
|
|
||||||
set $dashboard_upstream "http://revampdashboard:3000";
|
|
||||||
|
|
||||||
location / {
|
|
||||||
resolver 127.0.0.11;
|
|
||||||
proxy_pass $dashboard_upstream$uri$is_args$args;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { expect, test } from "@playwright/test";
|
import { expect, test } from "@playwright/test";
|
||||||
|
|
||||||
test("home page has expected h1", async ({ page }) => {
|
test("home page has expected h1", async ({ page }) => {
|
||||||
await page.goto("/");
|
await page.goto("/new");
|
||||||
await expect(page.locator("h1")).toBeVisible();
|
await expect(page.locator("h1")).toBeVisible();
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
@import 'tailwindcss/base';
|
@import 'tailwindcss/base';
|
||||||
@import 'tailwindcss/components';
|
@import 'tailwindcss/components';
|
||||||
@import 'tailwindcss/utilities'
|
@import 'tailwindcss/utilities';
|
||||||
|
|
Loading…
Add table
Reference in a new issue