Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ess-public-screens
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
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
Code review analytics
Issue 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
ics-software
ess-public-screens
Commits
e5ecd977
Commit
e5ecd977
authored
5 years ago
by
Benjamin Bertrand
Browse files
Options
Downloads
Patches
Plain Diff
Add nginx dockerfile and configuration
parent
3ae5e4e9
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.dockerignore
+3
-0
3 additions, 0 deletions
.dockerignore
Dockerfile
+11
-0
11 additions, 0 deletions
Dockerfile
default.conf
+39
-0
39 additions, 0 deletions
default.conf
nginx.conf
+42
-0
42 additions, 0 deletions
nginx.conf
with
95 additions
and
0 deletions
.dockerignore
0 → 100644
+
3
−
0
View file @
e5ecd977
.gitlab-ci.yml
README.md
PythonServer
This diff is collapsed.
Click to expand it.
Dockerfile
0 → 100644
+
11
−
0
View file @
e5ecd977
FROM
nginx:1.16
# Change directories owwnership to start nginx as non root
RUN
chown
-R
nginx /var/cache/nginx /var/log/nginx
;
COPY
nginx.conf /etc/nginx/
COPY
default.conf /etc/nginx/conf.d/
COPY
./WebSites /usr/share/nginx/web/
USER
nginx
This diff is collapsed.
Click to expand it.
default.conf
0 → 100644
+
39
−
0
View file @
e5ecd977
server
{
listen
8000
default_server
;
location
/ {
root
/
usr
/
share
/
nginx
/
web
/
pos
;
}
location
~ ^/(
pvs
|
interlocks
|
instruments
) {
root
/
usr
/
share
/
nginx
/
web
;
}
location
/
dev
{
alias
/
usr
/
share
/
nginx
/
web
/
pos
-
dev
;
}
# static json and png data files
location
~ ^/
data
/.*\.(
png
|
json
)$ {
root
/
usr
/
share
/
nginx
;
}
location
/
data
{
rewrite
/
data
/(.*)$ /$
1
break
;
proxy_pass
http
://
pos_python_server
:
8080
;
}
location
/
plot
{
rewrite
/
plot
/(.*)$ /$
1
break
;
proxy_pass
http
://
archiver
-
01
.
tn
.
esss
.
lu
.
se
:
17668
/;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
error_page
500
502
503
504
/
50
x
.
html
;
location
= /
50
x
.
html
{
root
/
usr
/
share
/
nginx
/
html
;
}
}
This diff is collapsed.
Click to expand it.
nginx.conf
0 → 100644
+
42
−
0
View file @
e5ecd977
worker_processes
1
;
error_log
/var/log/nginx/error.log
warn
;
pid
/var/cache/nginx/nginx.pid
;
events
{
worker_connections
1024
;
}
http
{
include
/etc/nginx/mime.types
;
default_type
application/octet-stream
;
log_format
graylog2_json
escape=json
'
{
"timestamp":
"
$time_iso8601
",
'
'"remote_addr":
"
$remote_addr
",
'
'"body_bytes_sent":
$body_bytes_sent
,
'
'"request_time":
$request_time
,
'
'"response_status":
$status
,
'
'"request":
"
$request
",
'
'"request_method":
"
$request_method
",
'
'"host":
"
$host
",'
'"upstream_cache_status":
"
$upstream_cache_status
",'
'"upstream_addr":
"
$upstream_addr
",'
'"http_x_forwarded_for":
"
$http_x_forwarded_for
",'
'"http_referrer":
"
$http_referer
",
'
'"http_user_agent":
"
$http_user_agent
",
'
'"http_version":
"
$server_protocol
",
'
'"nginx_access":
true
}
'
;
access_log
/var/log/nginx/access.log
graylog2_json
;
sendfile
on
;
#tcp_nopush on;
keepalive_timeout
65
;
#gzip on;
include
/etc/nginx/conf.d/*.conf
;
}
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