-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Improved `fullSetup.sh` - Fixed `local.conf` - `docker-compose-local.yml` now starts up correctly. `curl -I --http2 -k https://localhost` shows that http/2 is working as expected
- Loading branch information
1 parent
5e9ed0e
commit a5f6090
Showing
7 changed files
with
88 additions
and
27 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# Ignore mkcert generated files (certificates and keys) | ||
localhost+*.pem | ||
certs/ | ||
localhost+*.pem |
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
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,39 @@ | ||
client_max_body_size 100m; | ||
|
||
# Enable HTTP/2 globally | ||
http2 on; | ||
|
||
server { | ||
listen 80; | ||
listen [::]:80; | ||
server_name localhost; | ||
|
||
# Redirect HTTP to HTTPS | ||
location / { | ||
return 301 https://$host$request_uri; | ||
} | ||
} | ||
|
||
server { | ||
listen 443 ssl; | ||
listen [::]:443 ssl; | ||
server_name localhost; | ||
|
||
ssl_certificate /etc/nginx/certs/localhost+2.pem; | ||
ssl_certificate_key /etc/nginx/certs/localhost+2-key.pem; | ||
|
||
ssl_session_cache shared:SSL:1m; | ||
ssl_session_timeout 10m; | ||
ssl_ciphers HIGH:!aNULL:!MD5; | ||
ssl_prefer_server_ciphers on; | ||
|
||
# Root directory and index file | ||
root /usr/share/nginx/html; | ||
index index.html index.htm; | ||
|
||
location / { | ||
try_files $uri $uri/ =404; | ||
} | ||
|
||
# Additional configuration for reverse proxy or other settings can go here | ||
} |
File renamed without changes.
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