webserver-config/README.md

23 lines
1.1 KiB
Markdown
Raw Normal View History

2024-10-14 21:56:48 +00:00
# Web Server Setup Scripts
This repository contains scripts for setting up a very basic web server and adding new sites. It is not perfect, but it will get you off the ground quickly.
This script will install PHP and nginx, and create a
## One-liner
The following command will install these tools.
2024-10-14 22:03:43 +00:00
It is adviseable to review the contents of `quickstart.sh` before running it, as it's generally a good security practice to understand what a script does before executing it, especially with elevated privileges. You may need to install `curl` first.
2024-10-14 21:56:48 +00:00
```bash
2024-10-14 22:04:37 +00:00
curl -sSL https://raw.githubusercontent.com/joby-lol/webserver-config/refs/heads/main/quickstart.sh | bash
2024-10-14 21:56:48 +00:00
```
2024-10-14 22:59:19 +00:00
## Adding a site
To set up a site, run `add-site.sh` and it will prompt you for all the data necessary. What you will need before running it is:
* A domain name using Cloudflare's DNS, with both @ and * subdomains pointing at your server
* If you want to use their proxy, you need to turn on the SSL/TLS encryption mode of Full, Full(Strict), or Strict(SSL-Only Origin Pull). Flexible or Off will not work.
* A Cloudflare API key capable of editing the DNS for that domain