![38% of CISOs Fear They’re Not Moving Fast Enough on AI](https://cdn.sanity.io/images/cgdhsj6q/production/faa0bc28df98f791e11263f8239b34207f84b86f-1024x1024.webp?w=400&fit=max&auto=format)
Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
CADProxy is a tool designed to manage Caddy reverse proxy configurations with Cloudflare DNS. This tool simplifies the process of configuring reverse proxy setups and managing DNS records, utilizing AWS S3 for storing configuration profiles.
dig
command-line tool for DNS resolution checksYou can install CADProxy using pip:
pip install cadprox
Create a .env
file in the root directory of your project with the following content:
S3_ACCESS_KEY=<your_s3_access_key>
S3_SECRET_KEY=<your_s3_secret_key>
S3_REGION=<your_s3_region>
S3_BUCKET=<your_s3_bucket_name>
S3_CADDY_FILENAME=Caddyfile # Default filename, can be changed per profile
Create a Profile:
Run the following command to create a new profile:
cadprox create <main_domain>
You will be prompted to enter the following details:
Caddyfile
)Example:
cadprox create aiagency.dev
Add a New Subdomain:
To add a new subdomain and configure the reverse proxy, run:
cadprox add <subdomain> -p <port>
Example:
cadprox add subdomain.aiagency.dev -p 8080
This command performs the following actions:
Create Profile:
caddy_profiles.json
file in the specified S3 bucket.Add Subdomain:
CADProxy uses Python's logging
module for logging information, errors, and debugging messages. Logs are displayed in the console for easy tracking of actions and errors.
CLOUDFLARE_API_TOKEN: <hidden>
CLOUDFLARE_ZONE_ID: <hidden>
S3_CADDY_FILENAME: Caddyfile
MAIN_DOMAIN: aiagency.dev
INFO: Downloaded Caddyfile from S3 bucket caddy-configs
INFO: Successfully added DNS record: subdomain.aiagency.dev -> 192.0.2.1
INFO: subdomain.aiagency.dev is now resolvable
INFO: Updated Caddyfile with new entry for subdomain.aiagency.dev
INFO: Uploaded Caddyfile to S3 bucket caddy-configs
INFO: Caddy server reloaded successfully
First you need to create a caddy network:
docker network create caddy_network
Then run caddy docker
mkdir -p ~/cadprox_config && touch ~/cadprox_config/Caddyfile_docker && docker run -d \
--name caddy \
--network caddy_network \
-p 8555:443 \
-v ~/cadprox_config/Caddyfile_docker:/etc/caddy/Caddyfile \
-v caddy_data:/data \
-v caddy_config:/config \
caddy:latest
mkdir -p ~/cadprox_config && touch ~/cadprox_config/Caddyfile_docker && docker run -d \
--name caddy \
--network caddy_network \
-p 8555:443 \
-v ~/cadprox_config/Caddyfile_docker:/etc/caddy/Caddyfile \
-v caddy_data:/data \
-v caddy_config:/config \
caddy:latest
docker exec caddy caddy fmt --overwrite /etc/caddy/Caddyfile docker exec caddy caddy reload --config /etc/caddy/Caddyfile
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please open an issue or submit a pull request on GitHub.
For any issues, questions, or suggestions, please open an issue on the GitHub repository. More info Thriveroute.com.
FAQs
A tool to manage Caddy reverse proxy configurations with Cloudflare DNS.
We found that cadprox demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.