let's see if this works
This commit is contained in:
parent
88afb77abf
commit
c2da2a8058
5 changed files with 10 additions and 16 deletions
docker/production/nginx
revampdashboard
|
@ -1,10 +1,11 @@
|
|||
server {
|
||||
listen 80;
|
||||
server_name zappyzep.xyz;
|
||||
listen 80 default_server;
|
||||
server_name _;
|
||||
|
||||
# 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 $dashboard_upstream "http://dashboard:3002";
|
||||
set $newdashboard_upstream "http://revampdashboard:3000";
|
||||
|
||||
location / {
|
||||
# Using a variable in proxy_pass also requires resolver to be set.
|
||||
|
@ -13,6 +14,11 @@ server {
|
|||
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 {
|
||||
resolver 127.0.0.11;
|
||||
proxy_pass $backend_upstream$uri$is_args$args;
|
||||
|
@ -21,15 +27,3 @@ server {
|
|||
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";
|
||||
|
||||
test("home page has expected h1", async ({ page }) => {
|
||||
await page.goto("/");
|
||||
await page.goto("/new");
|
||||
await expect(page.locator("h1")).toBeVisible();
|
||||
});
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
@import 'tailwindcss/base';
|
||||
@import 'tailwindcss/components';
|
||||
@import 'tailwindcss/utilities'
|
||||
@import 'tailwindcss/utilities';
|
||||
|
|
Loading…
Add table
Reference in a new issue