Gitlab@Informatics
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PQS-Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
65160206
PQS-Frontend
Commits
bb4d6143
Commit
bb4d6143
authored
1 week ago
by
65160206
Browse files
Options
Downloads
Patches
Plain Diff
nginx refresh page not 404
parent
3b6ab950
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#669
failed
1 week ago
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+3
-0
3 additions, 0 deletions
Dockerfile
default.conf
+11
-0
11 additions, 0 deletions
default.conf
nginx.conf
+19
-0
19 additions, 0 deletions
nginx.conf
with
33 additions
and
0 deletions
Dockerfile
+
3
−
0
View file @
bb4d6143
...
...
@@ -16,6 +16,9 @@ RUN npm run build
# 👉 Production stage
FROM
nginx:stable-alpine
COPY
default.conf /etc/nginx/conf.d/default.conf
# ❗ถ้าอยากใช้ custom nginx.conf (optional)
# COPY nginx.conf /etc/nginx/nginx.conf
# คัดลอกไฟล์ที่ build แล้ว ไปยัง nginx
COPY
--from=builder /app/dist /usr/share/nginx/html
...
...
This diff is collapsed.
Click to expand it.
default.conf
0 → 100644
+
11
−
0
View file @
bb4d6143
server
{
listen
80
;
server_name
localhost
;
root
/
usr
/
share
/
nginx
/
html
;
index
index
.
html
;
location
/ {
try_files
$
uri
$
uri
/ /
index
.
html
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
nginx.conf
0 → 100644
+
19
−
0
View file @
bb4d6143
user
nginx
;
worker_processes
auto
;
error_log
/var/log/nginx/error.log
warn
;
pid
/var/run/nginx.pid
;
events
{
worker_connections
1024
;
}
http
{
include
/etc/nginx/mime.types
;
default_type
application/octet-stream
;
sendfile
on
;
keepalive_timeout
65
;
include
/etc/nginx/conf.d/*.conf
;
# 🔥 load default.conf จาก conf.d
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment