New Angular based web version #1
@@ -7,7 +7,12 @@ RUN pnpm install
|
||||
RUN pnpm "build:$CONFIGURATION"
|
||||
|
||||
FROM nginx:alpine
|
||||
RUN rm /etc/nginx/conf.d/*
|
||||
|
||||
ENV DOLLAR=$
|
||||
|
||||
WORKDIR /usr/share/nginx/html
|
||||
COPY --from=build /usr/local/app/dist/Vegasco-Web/browser .
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
COPY webserver.conf.template /etc/nginx/templates/webserver.conf.template
|
||||
EXPOSE 80
|
||||
|
||||
@@ -2,12 +2,7 @@ events { }
|
||||
http {
|
||||
include mime.types;
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
resolver 8.8.8.8 8.8.4.4 1.1.1.1;
|
||||
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
try_files $uri $uri/ /index.html =404;
|
||||
}
|
||||
}
|
||||
include /etc/nginx/conf.d/webserver.conf;
|
||||
}
|
||||
|
||||
12
src/Vegasco-Web/webserver.conf.template
Normal file
12
src/Vegasco-Web/webserver.conf.template
Normal 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;
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@ public static class Constants
|
||||
{
|
||||
public static class Projects
|
||||
{
|
||||
public const string Api = "Vegasco-Server-Api";
|
||||
public const string Api = "Vegasco_Server_Api";
|
||||
}
|
||||
|
||||
public static class Database
|
||||
|
||||
Reference in New Issue
Block a user