Created
April 3, 2024 16:14
-
-
Save ibuildthecloud/0d101b847425a5d19a5f1f252c473123 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
tools: github.com/gptscript-ai/search/brave, sys.write, sys.http.html2text | |
1. First search the web for some good references on how to write Caddyfile according to the below instructions | |
2. Then write a the Caddyfile locally in the file Caddyfile | |
Instructions: | |
Create a web server that serves static files from the local directory /images at the URL /images. Those images | |
should have prompt content caching headers on them. | |
Also serve the local directory /css and /js at the URLs /css, /js respectively. Those static assets should be | |
served with gzip and brotli compression. | |
Finally /v1 should use FastCGI and proxy the request to a local PHP instance with the php pages being in /v1 locally |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To run this you will need a Brave Search API key (they are free and quick to create). I got the following output. No clue if its correct