feature : Connect front to backend #1

Merged
BoxOfPandor merged 25 commits from feat/connect-front-to-backend into main 2026-03-19 14:56:19 +01:00
5 changed files with 7 additions and 4 deletions
Showing only changes of commit 11708032bd - Show all commits

View File

@@ -38,7 +38,7 @@ services:
build: ./nest-front
restart: unless-stopped
ports:
- "5173:5173"
- "80:80"
intra:
build: ./nest-intra

View File

@@ -19,7 +19,7 @@ FROM nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/nginx.conf.template
EXPOSE 5173
EXPOSE 80
# API_URL is the backend's public base URL used by nginx proxy_pass.
# Set this at runtime in Coolify, e.g. API_URL=https://api.crowmate.fr

View File

@@ -2,5 +2,5 @@ services:
nest-front:
build: .
ports:
- "5173:5173"
- "80:80"
restart: unless-stopped

View File

@@ -1,5 +1,5 @@
server {
listen 5173;
listen 80;
root /usr/share/nginx/html;
index index.html;

View File

@@ -7,4 +7,7 @@ export default defineConfig({
react(),
tailwindcss(),
],
server: {
port: 80,
},
})