mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-05 18:20:37 +01:00
Merge pull request #3373 from yixingjia/updatenginx
Update nginx images OSS to latest
This commit is contained in:
commit
95743f9a81
@ -1,9 +1,11 @@
|
|||||||
FROM library/photon:1.0
|
FROM vmware/photon:1.0
|
||||||
|
|
||||||
RUN tdnf install -y nginx \
|
RUN tdnf distro-sync -y \
|
||||||
|
&& tdnf install -y nginx \
|
||||||
&& ln -sf /dev/stdout /var/log/nginx/access.log \
|
&& ln -sf /dev/stdout /var/log/nginx/access.log \
|
||||||
&& ln -sf /dev/stderr /var/log/nginx/error.log \
|
&& ln -sf /dev/stderr /var/log/nginx/error.log \
|
||||||
&& mkdir -p /var/run
|
&& mkdir -p /var/run \
|
||||||
|
&& tdnf clean all
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
STOPSIGNAL SIGQUIT
|
STOPSIGNAL SIGQUIT
|
||||||
|
@ -30,7 +30,7 @@ http {
|
|||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
|
server_tokens off;
|
||||||
# disable any limits to avoid HTTP 413 for large image uploads
|
# disable any limits to avoid HTTP 413 for large image uploads
|
||||||
client_max_body_size 0;
|
client_max_body_size 0;
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ http {
|
|||||||
server {
|
server {
|
||||||
listen 443 ssl;
|
listen 443 ssl;
|
||||||
# server_name harbordomain.com;
|
# server_name harbordomain.com;
|
||||||
|
server_tokens off;
|
||||||
# SSL
|
# SSL
|
||||||
ssl_certificate $ssl_cert;
|
ssl_certificate $ssl_cert;
|
||||||
ssl_certificate_key $ssl_cert_key;
|
ssl_certificate_key $ssl_cert_key;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
server {
|
server {
|
||||||
listen 4443 ssl;
|
listen 4443 ssl;
|
||||||
|
server_tokens off;
|
||||||
# ssl
|
# ssl
|
||||||
ssl_certificate $ssl_cert;
|
ssl_certificate $ssl_cert;
|
||||||
ssl_certificate_key $ssl_cert_key;
|
ssl_certificate_key $ssl_cert_key;
|
||||||
|
Loading…
Reference in New Issue
Block a user