Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
docker-nginx-plus
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
docker-nginx-plus
Commits
453f735f
Commit
453f735f
authored
Jan 24, 2022
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
logformat
parent
fe13e592
Pipeline
#8972
passed with stages
in 1 minute and 19 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
2 deletions
+59
-2
Dockerfile
Dockerfile
+5
-2
nginx.conf
nginx.conf
+54
-0
No files found.
Dockerfile
View file @
453f735f
...
...
@@ -5,8 +5,11 @@ RUN apk add --no-cache wget && \
apk add
--no-cache
nginx-plus nginx-plus-module-modsecurity ca-certificates
&&
\
ln
-sf
/dev/stdout /var/log/nginx/access.log
&&
\
ln
-sf
/dev/stderr /var/log/nginx/error.log
&&
\
rm
-rf
/etc/nginx/sites-enabled/
*
/etc/nginx/conf.d/default.conf
# COPY ./dummy /usr/lib/nginx-plus/check-subscription
rm
-rf
/etc/nginx/sites-enabled/
*
/etc/nginx/conf.d/default.conf
&&
\
mkdir
/etc/nginx/stream
COPY
./dummy /usr/lib/nginx-plus/check-subscription
COPY
./nginx.conf /etc/nginx/nginx.conf
EXPOSE
80 443
STOPSIGNAL
SIGTERM
...
...
nginx.conf
0 → 100644
View file @
453f735f
user
nginx
;
worker_processes
auto
;
error_log
/var/log/nginx/error.log
notice
;
pid
/var/run/nginx.pid
;
events
{
worker_connections
1024
;
}
http
{
include
/etc/nginx/mime.types
;
default_type
application/octet-stream
;
log_format
main
'
$host
:
$server_port
'
'
$remote_addr
-
$remote_user
[
$time_local
]
'
'"
$request_method
$scheme
:
//
$host$request_uri
"
$status
$body_bytes_sent
'
'"
$http_referer
"
"
$http_user_agent
"
"
$upstream_cache_status
"
"
$upstream_http_cache_control
"'
;
access_log
/var/log/nginx/access.log
main
;
sendfile
on
;
#tcp_nopush on;
keepalive_timeout
65
;
#gzip on;
include
/etc/nginx/conf.d/*.conf
;
}
# TCP/UDP proxy and load balancing block
stream
{
# Example configuration for TCP load balancing
#upstream stream_backend {
# zone tcp_servers 64k;
# server backend1.example.com:12345;
# server backend2.example.com:12345;
#}
#server {
# listen 12345;
# status_zone tcp_server;
# proxy_pass stream_backend;
#}
include
/etc/nginx/stream/*.conf
;
}
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