Skip to content

Commit 2c061ef

Browse files
committed
some updates for our tests..
1 parent a53e0f3 commit 2c061ef

3 files changed

Lines changed: 6 additions & 15 deletions

File tree

Dockerfile

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -134,17 +134,8 @@ CMD ["yarn", "start"]
134134

135135

136136
################# HTTPS serving stage for local/debug
137-
FROM base-nginx AS https
138-
COPY --from=production-builder /app/dist/spa /usr/share/nginx/html
139-
RUN mkdir -p /etc/nginx/ssl \
140-
&& openssl req -x509 -nodes -days 365 \
141-
-subj "/CN=localhost" \
142-
-newkey rsa:2048 \
143-
-keyout /etc/nginx/ssl/nginx.key \
144-
-out /etc/nginx/ssl/nginx.crt \
145-
&& cp /etc/nginx/conf.d/template.conf /etc/nginx/conf.d/default.conf \
146-
&& sed -i 's/listen 9000;/listen 443 ssl;/' /etc/nginx/conf.d/default.conf \
147-
&& sed -i '/root \/usr\/share\/nginx\/html;/a ssl_certificate /etc/nginx/ssl/nginx.crt;\nssl_certificate_key /etc/nginx/ssl/nginx.key;' /etc/nginx/conf.d/default.conf
148-
EXPOSE 443
137+
FROM debug-builder AS https
138+
149139
STOPSIGNAL SIGTERM
150-
CMD ["nginx", "-g", "daemon off;"]
140+
EXPOSE 9000
141+
CMD ["yarn", "quasar", "serve", "--https", "-p 9000", "dist/spa/"]

cypress.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default defineConfig({
99
chromeWebSecurity: false,
1010
e2e: {
1111
// setupNodeEvents(on, config) {},
12-
baseUrl: 'http://localhost:9000',
12+
baseUrl: 'https://localhost:9000',
1313
//baseUrl: 'http://localhost:4000',
1414
//baseUrl: 'https://taskyon.space',
1515
supportFile: 'test/cypress/support/e2e.ts',

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ services:
2828
dockerfile: ./Dockerfile
2929
target: https
3030
ports:
31-
- '9000:9000'
31+
- '9443:443'
3232
restart: always
3333

3434
llmapi:

0 commit comments

Comments
 (0)