https://github.com/mlctrez/gossl
https://github.com/mlctrez/gossl
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mlctrez/gossl
- Owner: mlctrez
- License: apache-2.0
- Created: 2022-11-25T21:33:42.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-07-07T18:39:36.000Z (12 months ago)
- Last Synced: 2025-10-10T03:56:34.577Z (9 months ago)
- Language: Go
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gossl
A reverse proxy using [acme/autocert](https://pkg.go.dev/golang.org/x/crypto/acme/autocert) for automatically creating / renewing certificates.
Access is controlled by a not-easily-guessable token.
```bash
# Environment variables and descriptions.
# A file with these can be placed /etc/sysconfig/ if run as a service.
# Listen address in http.ListenAndServe format
ADDRESS=EXTERNAL_IP:443
# Domain to use in the cookie
ACME_DOMAIN=COOKIE_DOMAIN
# The token to allow access. Visit one of the configured domains with this
# in the path to set it. Rotate frequently and don't share in public.
GO_SSL_TOKEN=LONG_UUID_NOT_EASILY_GUESSABLE
# reverse proxy entries must have prefix GO_SSL_ENDPOINT_
# followed by hostname with "." replaced with "_"
GO_SSL_ENDPOINT_one_example_com=http://10.0.0.1:9000
GO_SSL_ENDPOINT_two_example_com=http://10.0.0.2:9000
# this environment variable indicates which host names can skip the token verification
# i.e. strings.Contains(os.getEnv(SKIP_GO_SSL_TOKEN), hostName)
SKIP_GO_SSL_TOKEN=two.example.com
```
[](https://goreportcard.com/report/github.com/mlctrez/gossl)
created by [tigwen](https://github.com/mlctrez/tigwen)