Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cc-qtl-db
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container registry
Model registry
Operate
Environments
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cc-qtl
cc-qtl-db
Commits
f3ce1e16
Commit
f3ce1e16
authored
4 years ago
by
Antoine Millet
Browse files
Options
Downloads
Patches
Plain Diff
Also fixed run as non root for "prod" nginx static server
parent
89e49005
No related branches found
No related tags found
No related merge requests found
Pipeline
#43114
passed
4 years ago
Stage: test
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
nginx/prod/Dockerfile
+2
-2
2 additions, 2 deletions
nginx/prod/Dockerfile
nginx/prod/nginx.conf
+9
-1
9 additions, 1 deletion
nginx/prod/nginx.conf
with
11 additions
and
3 deletions
nginx/prod/Dockerfile
+
2
−
2
View file @
f3ce1e16
FROM
nginx:1.17.6-alpine
FROM
nginx
inc/nginx-unprivileged
:1.17.6-alpine
COPY
nginx.conf /etc/nginx/nginx.conf
EXPOSE
80
EXPOSE
80
80
CMD
["nginx", "-g", "daemon off;"]
This diff is collapsed.
Click to expand it.
nginx/prod/nginx.conf
+
9
−
1
View file @
f3ce1e16
pid
/tmp/nginx.pid
;
events
{
worker_connections
1024
;
}
http
{
proxy_temp_path
/tmp/proxy_temp
;
client_body_temp_path
/tmp/client_temp
;
fastcgi_temp_path
/tmp/fastcgi_temp
;
uwsgi_temp_path
/tmp/uwsgi_temp
;
scgi_temp_path
/tmp/scgi_temp
;
include
/etc/nginx/mime.types
;
client_max_body_size
100m
;
server
{
listen
80
;
listen
80
80
;
root
/usr/src/app/
;
location
/static/
{
...
...
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