Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
Scenarioswebapp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TokaKaram
Scenarioswebapp
Commits
5a9ce661
Commit
5a9ce661
authored
Jan 07, 2026
by
TokaKaram
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change cors setting
parent
3639d2d7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
server.js
backend/server.js
+6
-1
captain-definition
captain-definition
+4
-5
No files found.
backend/server.js
View file @
5a9ce661
...
@@ -9,7 +9,12 @@ const userRoutes = require("./src/routes/user");
...
@@ -9,7 +9,12 @@ const userRoutes = require("./src/routes/user");
const
app
=
express
();
const
app
=
express
();
app
.
use
(
cors
());
app
.
use
(
cors
({
origin
:
process
.
env
.
FRONTEND_URL
||
"http://localhost:3000"
,
credentials
:
true
,
})
);
app
.
use
(
express
.
json
());
app
.
use
(
express
.
json
());
app
.
use
(
"/api/auth"
,
authRoutes
);
app
.
use
(
"/api/auth"
,
authRoutes
);
...
...
captain-definition
View file @
5a9ce661
{
{
"schemaVersion": 2,
"schemaVersion": 2,
"dockerfileLines": [
"dockerfileLines": [
"FROM node:22-alpine
AS build-step
",
"FROM node:22-alpine",
"WORKDIR /app",
"WORKDIR /app",
"COPY . .",
"COPY . .",
"RUN cd frontend && npm install && npm run build",
"RUN cd backend && npm install --production",
"FROM socialengine/nginx-spa:latest",
"EXPOSE 5000",
"COPY --from=build-step /app/frontend/dist /app",
"CMD [\"sh\", \"-c\", \"cd backend && node src/app.js\"]"
"RUN chmod -R 777 /app"
]
]
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment