Repository navigation
feat: replace Nginx with Caddy as the default HTTP server #354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
8f9bba4
feat: replace Nginx with Caddy as the default HTTP server and reverse…
vermorag ced07d5
Merge branch 'main' into feat/nginx-caddy-replacement
vermorag 074643f
feat: remove "Server" and "Via" headers from Caddy HTTP responses for…
vermorag 24c6038
chore: disable APP_DEBUG in .env.example for production readiness
vermorag dbd90c6
fix: increase read and write timeouts for PHP reverse proxy in Caddy …
vermorag 75abd0e
feat: enhance Caddy configuration with stricter security headers and …
vermorag e92ce1c
feat: add X-Content-Type-Options header to Caddy configuration for en…
vermorag b1d9878
Merge branch 'main' into feat/nginx-caddy-replacement
vermorag 34ddc9c
feat: pin Caddy version, enhance configuration with stricter proxy se…
vermorag b7615eb
chore: update APP_URL port in .env.example for local development alig…
vermorag File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,44 @@ | ||
| { | ||
| admin off | ||
| } | ||
|
|
||
| :8080 { | ||
| root * /opt/cattr/app/public | ||
| encode gzip | ||
| header { | ||
| -Server | ||
| -Via | ||
| } | ||
|
vermorag marked this conversation as resolved.
Outdated
|
||
| log { | ||
| output stdout | ||
| } | ||
| request_body { | ||
| max_size 512MiB | ||
| } | ||
|
|
||
| @websocket { | ||
| header Connection *Upgrade* | ||
| header Upgrade websocket | ||
| } | ||
|
vermorag marked this conversation as resolved.
Outdated
|
||
| @php path *.php | ||
| @static { | ||
| file {path} | ||
|
vermorag marked this conversation as resolved.
Outdated
|
||
| not path *.php | ||
| } | ||
|
|
||
| route { | ||
| reverse_proxy @websocket 127.0.0.1:8081 | ||
|
|
||
| reverse_proxy @php 127.0.0.1:8090 { | ||
| header_up SERVER_PORT {server_port} | ||
|
vermorag marked this conversation as resolved.
Outdated
|
||
| header_up REMOTE_ADDR {remote_host} | ||
| } | ||
|
|
||
| file_server @static | ||
|
|
||
| reverse_proxy 127.0.0.1:8090 { | ||
| header_up SERVER_PORT {server_port} | ||
| header_up REMOTE_ADDR {remote_host} | ||
| } | ||
| } | ||
| } | ||
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.