mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-06-14 18:35:01 +00:00
fix: temporarily add back self-signed prod cert
This commit is contained in:
parent
7c2666951e
commit
ce778d69c3
2 changed files with 15 additions and 1 deletions
|
@ -1,3 +1,6 @@
|
|||
FROM nginx
|
||||
|
||||
RUN apt-get update && apt-get install -y openssl
|
||||
RUN openssl req -x509 -newkey rsa:4096 -keyout /etc/ssl/private/localhost-cert.key -out /etc/ssl/certs/localhost-cert.pem -days 3650 -subj '/CN=localhost' -nodes
|
||||
|
||||
COPY ./docker/production/nginx/default.conf /etc/nginx/conf.d/default.conf
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
server {
|
||||
listen 80 default_server;
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
server_name _;
|
||||
|
||||
# Using a variable here stops nginx from crashing if the dev container is restarted or becomes otherwise unavailable
|
||||
|
@ -20,4 +21,14 @@ server {
|
|||
|
||||
client_max_body_size 200M;
|
||||
}
|
||||
|
||||
ssl_certificate /etc/ssl/certs/localhost-cert.pem;
|
||||
ssl_certificate_key /etc/ssl/private/localhost-cert.key;
|
||||
|
||||
ssl_session_timeout 1d;
|
||||
ssl_session_cache shared:MozSSL:10m;
|
||||
ssl_session_tickets off;
|
||||
|
||||
ssl_protocols TLSv1.3;
|
||||
ssl_prefer_server_ciphers off;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue