Skip to content

Instantly share code, notes, and snippets.

@aalemayhu
Last active July 23, 2023 11:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aalemayhu/dae11dafd0869d65e3b918852fbff07e to your computer and use it in GitHub Desktop.
Save aalemayhu/dae11dafd0869d65e3b918852fbff07e to your computer and use it in GitHub Desktop.
Steps to add new cname to pagekite
  1. Create a new CNAME in DNS entries for www.example.com.
  2. Install pagekite curl -s https://pagekite.net/pk/ |sudo bash
  3. Run pagekite.py 80 example.pagekite.me
  4. Update nginx redirect.
  5. systemctl restart nginx

nginx:

server {
    listen       80;
    server_name  example.com;
    return       301 https://example.com$request_uri;
}

pagekite.rc:

kitename   = example.pagekite.me
kitesecret = TurdSandwich

##[ Back-ends and local services ]##
service_on  = https:@kitename                   : localhost:80      : @kitesecret
service_on  = https:www.example.com             : localhost:80      : @kitesecret
@movsar
Copy link

movsar commented Jul 23, 2023

how do you set the secret for your domain? I only have two DNS records www and * both pointing to my domain, nothing works, I am going crazy with this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment