Skip to content

Latest commit

 

History

History
52 lines (38 loc) · 1.81 KB

README.md

File metadata and controls

52 lines (38 loc) · 1.81 KB

点击前往中文说明

Acknowledgments

Attention

Do not abuse service from PaaS platforms or your account could get banned. Deploy at your own risk.

Overview

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.).

未命名绘图 (1)

Deployment

  • 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.

Deploy to Heroku

  • Heroku will stop offering free product plans and shut down free dynos starting Nov. 28, 2022.

Deploy

Deploy to Okteto, Railway, Northflank etc.

  • Link your forked repo in PaaS platform's dashboard
  • Set DOH_PATH env
  • Deploy

Deploy to Koyeb

  • 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.

Deploy to fly.io

  • 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