mirror of
https://github.com/PokeAPI/pokeapi
synced 2024-11-10 06:04:18 +00:00
docs: add example ssl config
This commit is contained in:
parent
21c959e87b
commit
af8c80d422
2 changed files with 16 additions and 1 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -8,4 +8,5 @@ venv*
|
|||
node_modules
|
||||
.vscode
|
||||
.env
|
||||
Resources/nginx/ssl/*
|
||||
Resources/nginx/ssl/*
|
||||
!Resources/nginx/ssl/*.sample.*
|
14
Resources/nginx/ssl/ssh.sample.conf
Normal file
14
Resources/nginx/ssl/ssh.sample.conf
Normal file
|
@ -0,0 +1,14 @@
|
|||
# Copy this file to ssl.conf, add certificate and private key to enable ssl
|
||||
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
|
||||
ssl_certificate /ssl/cert.cer;
|
||||
ssl_certificate_key /ssl/key.key;
|
||||
ssl_session_timeout 1d;
|
||||
ssl_session_cache shared:MozSSL:10m;
|
||||
ssl_session_tickets off;
|
||||
|
||||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
|
||||
ssl_prefer_server_ciphers off;
|
Loading…
Reference in a new issue