Skip to content

Instantly share code, notes, and snippets.

@nogweii
Last active November 25, 2017 06:34
Show Gist options
  • Select an option

  • Save nogweii/8278021 to your computer and use it in GitHub Desktop.

Select an option

Save nogweii/8278021 to your computer and use it in GitHub Desktop.
PageKite configuration for running your own front-end (broken, sorta)
# /etc/pagekite/20_frontend.rc on kites.evaryont.me
# Front-end selection
#
# Front-ends accept incoming requests on your behalf and forward them to
# your PageKite, which in turn forwards them to the actual server.
# Running my own front-end!
isfrontend
# Run as user is also specified in the init.d script (and the log file)
#runas=nobody:nogroup
ports=80,443
protos = finger,http,http2,http3,httpfinger,https,irc,minecraft,raw,websocket
#domain=http,https:kites.evaryont.me:secret-secret
domain=http:*.kites.evaryont.me:secret-secret
# Fall back on any incoming HTTP/HTTPS requests that we don't
# know about to nginx listening on localhost
service_on=https:unknown:localhost:8443:
service_on=http:unknown:localhost:8080:
# ~/.pagekite.rc on my laptop; generate via `egrep -v "(^#|^$)" ~/.pagekite.rc`
kitename = basic.kites.evaryont.me
kitesecret = secret-secret
frontend = kites.evaryont.me:443
service_on = raw-22:ssh.kites.evaryont.me : localhost:22 : @kitesecret
service_on = raw-443:@kitename : localhost:22 : @kitesecret
savefile = /home/colin/.pagekite.rc
END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment