- IrineSistiana/mosdns An advanced DNS forwarder.
- v2fly
Do not abuse service from PaaS platforms or your account could get banned. Deploy at your own risk.
This repo is for deploying mosdns DoH service which is an advanced DNS forwarder on various PaaS platforms (Heroku, Okteto, Railway, Northflank, fly.io, etc.).
- Fork this repo
- Modify /content/config.yaml to suit your needs. Default config file has ad-blocking and ECS enabled.
- Strongly recommend custom DOH_PATH env value to prevent other ppl from abusing your deployment.
- Heroku will stop offering free product plans and shut down free dynos starting Nov. 28, 2022.
- Link your forked repo in PaaS platform's dashboard
- Set DOH_PATH env
- Deploy
- Create a new release in your forked repo with a tag like "v0.0.1"
- Wait for github action to finish
- Use your new generated container image to deploy.
- Install flyctl
- git clone repo and change path to repo folder
- edit fly.toml to set DOH_PATH env
# Login
flyctl auth login
# Create app
flyctl apps create <app_name>
# Set region https://fly.io/docs/reference/regions/
flyctl regions set <region_code> -a <app_name>
# Deploy
flyctl deploy --detach -a <app_name> --remote-only --no-cache