To deploy, run:
$ gcloud app deploy proxy.yaml
...
$ gcloud app deploy target.yaml
...
To check on its status, run:
$ gcloud app browse
To stream logs when deployed, run
$ gcloud app logs tail -s default
To run locally build and run the project using
go build
PORT=8080 ./odoh-server
You need to deploy a reverse proxy with a valid TLS server certificate for clients to be able to authenticate the target or proxy.
The simplest option for this is using Caddy. Caddy will automatically provision a TLS certificate using ACME from Let's Encrypt.
For instance:
caddy reverse-proxy --from https://odoh.example.net:443 --to 127.0.0.1:8080
Alternatively, use a Caddyfile similar to:
odoh.example.net
reverse_proxy localhost:8080
and run caddy start
.