Skip to content

Commit

Permalink
feat: update nginx and docker-compose files to support HTTPS. (#2940)
Browse files Browse the repository at this point in the history
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
  • Loading branch information
Kennytian and crazywoola authored Mar 26, 2024
1 parent eeaa3c1 commit 08a5afc
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,10 @@ services:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/proxy.conf:/etc/nginx/proxy.conf
- ./nginx/conf.d:/etc/nginx/conf.d
#- ./nginx/ssl:/etc/ssl
depends_on:
- api
- web
ports:
- "80:80"
#- "443:443"
11 changes: 10 additions & 1 deletion docker/nginx/conf.d/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,13 @@ server {
proxy_pass http://web:3000;
include proxy.conf;
}
}

# If you want to support HTTPS, please uncomment the code snippet below
#listen 443 ssl;
#ssl_certificate ./../ssl/your_cert_file.cer;
#ssl_certificate_key ./../ssl/your_cert_key.key;
#ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
#ssl_prefer_server_ciphers on;
#ssl_session_cache shared:SSL:10m;
#ssl_session_timeout 10m;
}
1 change: 1 addition & 0 deletions docker/nginx/ssl/.gitkeep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

0 comments on commit 08a5afc

Please sign in to comment.