Adjustments for working deployment
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-06-24 19:12:29 +02:00
parent f6dbf489ad
commit 8681247e76
4 changed files with 20 additions and 8 deletions

View File

@@ -7,7 +7,12 @@ RUN pnpm install
RUN pnpm "build:$CONFIGURATION" RUN pnpm "build:$CONFIGURATION"
FROM nginx:alpine FROM nginx:alpine
RUN rm /etc/nginx/conf.d/*
ENV DOLLAR=$
WORKDIR /usr/share/nginx/html WORKDIR /usr/share/nginx/html
COPY --from=build /usr/local/app/dist/Vegasco-Web/browser . COPY --from=build /usr/local/app/dist/Vegasco-Web/browser .
COPY nginx.conf /etc/nginx/nginx.conf COPY nginx.conf /etc/nginx/nginx.conf
COPY webserver.conf.template /etc/nginx/templates/webserver.conf.template
EXPOSE 80 EXPOSE 80

View File

@@ -2,12 +2,7 @@ events { }
http { http {
include mime.types; include mime.types;
server { resolver 8.8.8.8 8.8.4.4 1.1.1.1;
listen 80;
location / { include /etc/nginx/conf.d/webserver.conf;
root /usr/share/nginx/html;
try_files $uri $uri/ /index.html =404;
}
}
} }

View File

@@ -0,0 +1,12 @@
server {
listen 80;
location ~ ^/api/(.*) {
proxy_pass ${services__Vegasco_Server_Api__https__0}/$1;
}
location / {
root /usr/share/nginx/html;
try_files ${DOLLAR}uri ${DOLLAR}uri/ /index.html =404;
}
}

View File

@@ -4,7 +4,7 @@ public static class Constants
{ {
public static class Projects public static class Projects
{ {
public const string Api = "Vegasco-Server-Api"; public const string Api = "Vegasco_Server_Api";
} }
public static class Database public static class Database