Created
December 10, 2022 07:20
-
-
Save discountry/28dbfa7bd8b5841525026c6038f90e05 to your computer and use it in GitHub Desktop.
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
| admin.com { | |
| root * /var/www/docs | |
| file_server browse | |
| } |
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
| import sites/* | |
| import snippets/* | |
| import laravel-app laravel.com /var/www/laravel | |
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
| # snippets/laravel-app | |
| # {args.0} represents the root url of the app. Example: "jorgeglz.io". | |
| # {args.1} represents the root path to the app. Example: "/var/www/my-site.com" | |
| (laravel-app) { | |
| {args.0} { | |
| # Resolve the root directory for the app | |
| root * {args.1}/public | |
| # Provide Zstd and Gzip compression | |
| encode zstd gzip | |
| # Enable PHP-FPM | |
| php_fastcgi unix//run/php/php8.1-fpm.sock | |
| # Allow caddy to serve static files | |
| file_server | |
| } | |
| } |
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
| python.com { | |
| reverse_proxy unix//run/gunicorn.sock | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment