How to Setup your own Medium custom domain

Theory

Use reversed proxy to forward request from custom domain to Medium page

Implementation

I’m a big fan of Heroku, so I prefer solution which can deploy to Heroku. So, I decided to write an Flask application to work as reversed proxy.

A very simple code in python to run a reversed proxy

Installation

For the installation, please follow the guide on my repo https://github.com/cuongmx/MediumProxy

  • Setup application to Heroku
  • Customize Heroku domain
  • Add domain to Cloudflare if you need https

Demo

In my demo, I have setup my domain https://m.cuong.mx point to my Medium https://cuongmx.medium.com

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
cuongmx

cuongmx

I'm a developer working in cyber security. My regularly IDE is MS Word.