-
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
118 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
{{- if .Values.cachingNginx.enabled }} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ template "verdaccio.fullname" . }}-nginx-config | ||
data: | ||
nginx.conf: | | ||
user nginx; | ||
worker_processes 4; | ||
pid /var/run/nginx.pid; | ||
error_log /dev/stderr info; | ||
events { | ||
worker_connections 10240; | ||
use epoll; | ||
} | ||
http { | ||
include /etc/nginx/mime.types; | ||
default_type application/octet-stream; | ||
server_names_hash_max_size 512; | ||
server_names_hash_bucket_size 64; | ||
sendfile on; | ||
tcp_nopush on; | ||
tcp_nodelay on; | ||
proxy_buffer_size 4k; | ||
proxy_buffers 1024 4k; | ||
proxy_read_timeout 2m; | ||
proxy_send_timeout 2m; | ||
fastcgi_buffer_size 4k; | ||
fastcgi_buffers 1024 4k; | ||
keepalive_timeout 10; | ||
keepalive_requests 100; | ||
reset_timedout_connection on; | ||
client_max_body_size 100m; | ||
gzip on; | ||
gzip_types text/css application/x-javascript application/javascript text/javascript text/plain; | ||
gzip_comp_level 6; | ||
gzip_min_length 100; | ||
gzip_http_version 1.0; | ||
gzip_proxied any; | ||
gzip_disable "msie6"; | ||
gzip_vary on; | ||
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | ||
ssl_ciphers 'EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA384:EECDH+ECDSA+SHA256:EECDH+aRSA+SHA384:EECDH+aRSA+SHA256:EECDH+aRSA+RC4:EECDH:EDH+aRSA:RC4:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS:!RC4'; | ||
ssl_session_cache shared:SSL:10m; | ||
ssl_session_timeout 30m; | ||
ssl_buffer_size 4k; | ||
ssl_prefer_server_ciphers on; | ||
ssl_session_tickets off; | ||
log_format main escape=json | ||
'{' | ||
'"time_local":"$time_local",' | ||
'"remote_addr":"$remote_addr",' | ||
'"remote_user":"$remote_user",' | ||
'"request":"$request",' | ||
'"status": "$status",' | ||
'"body_bytes_sent":"$body_bytes_sent",' | ||
'"request_time":"$request_time",' | ||
'"http_referrer":"$http_referer",' | ||
'"http_user_agent":"$http_user_agent"' | ||
'}'; | ||
access_log /dev/stdout main; | ||
real_ip_header X-Real-IP; | ||
set_real_ip_from 0.0.0.0/0; | ||
proxy_cache_path {{ .Values.cachingNginx.proxyCachePath }} | ||
include /etc/nginx/conf.d/*.conf; | ||
} | ||
default.conf: | | ||
server { | ||
listen 80; | ||
location / { | ||
proxy_pass http://127.0.0.1:4873; | ||
proxy_http_version 1.1; | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection 'upgrade'; | ||
proxy_set_header Host $host; | ||
} | ||
} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters