Update README.md
This commit is contained in:
parent
460f33801f
commit
09ecfbfd17
1 changed files with 6 additions and 5 deletions
11
README.md
11
README.md
|
@ -84,13 +84,13 @@ Note: If you created the symlink, you can use `cf` instead of `./cf` from any di
|
||||||
|
|
||||||
## 3. File and Environment Structure
|
## 3. File and Environment Structure
|
||||||
|
|
||||||
- `Caddyfile`: Caddy server configuration
|
- `cf`: Wrapper script to activate conda environment and run the Python script
|
||||||
|
- `cf.py`: Main Python script
|
||||||
|
- `setup.sh`: Shell script to set up your Conda environment
|
||||||
|
- `environment.yaml`: Conda environment specification
|
||||||
- `cf_domains.yaml`: Stores domain info and DNS record IDs
|
- `cf_domains.yaml`: Stores domain info and DNS record IDs
|
||||||
- `.env`: Contains `CLOUDFLARE_API_TOKEN` and `CURRENT_IP`
|
- `.env`: Contains `CLOUDFLARE_API_TOKEN` and `CURRENT_IP`
|
||||||
- `cf_script.log`: Logs script actions
|
- `cf_script.log`: Logs script actions
|
||||||
- `environment.yaml`: Conda environment specification
|
|
||||||
- `cf`: Wrapper script to activate conda environment and run the Python script
|
|
||||||
- `cf.py`: Main Python script
|
|
||||||
|
|
||||||
## 4. Key Functions and Error Handling
|
## 4. Key Functions and Error Handling
|
||||||
|
|
||||||
|
@ -99,9 +99,10 @@ Note: If you created the symlink, you can use `cf` instead of `./cf` from any di
|
||||||
- `update_or_create_record()`: Manages Cloudflare DNS records
|
- `update_or_create_record()`: Manages Cloudflare DNS records
|
||||||
|
|
||||||
Common errors:
|
Common errors:
|
||||||
- API authentication failures: Check API token in `.env` file
|
- API authentication failures: Check Cloudflare API token in `.env` file
|
||||||
- Permission issues: Run with sudo for Caddyfile changes
|
- Permission issues: Run with sudo for Caddyfile changes
|
||||||
- Domain not found: Ensure domain is in `cf_domains.yaml`
|
- Domain not found: Ensure domain is in `cf_domains.yaml`
|
||||||
|
- Caddy failing to obtain HTTPS certificates: Ensure the Caddy service environment contains your CLOUDFLARE_API_TOKEN, and your Caddyfile contains your email address; see Caddy documentation if you have further trouble
|
||||||
|
|
||||||
Logs are in `cf_script.log` for troubleshooting.
|
Logs are in `cf_script.log` for troubleshooting.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue