Boilerplate for how I like to write a backend web service.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

22 lines
939 B

PORT="3000"
#LISTEN=":3000"
DATABASE_URL=postgres://postgres:postgres@localhost:5432/postgres
TEST_DATABASE_URL=postgres://postgres:postgres@localhost:5432/postgres_test
TRUST_PROXY=false
# Supports OIDC-compliant SSO issuers / providers
# (Auth0, Google, etc)
# (should provide .well-known/openid-configuration and .well-known/jwks.json)
OIDC_WHITELIST=https://mock.pocketid.app
# Public Key may be provided in addition to or in lieu of OIDC_WHITELIST
# can be RSA or ECDSA, either a filename or JWK/JSON (or PEM, but good luck escaping the newlines)
#
# go install -mod=vendor git.rootprojects.org/root/keypairs/cmd/keypairs
# keypairs gen -o priv.jwk.json --pub pub.jwk.json
#
#PUBLIC_KEY='{"crv":"P-256","kid":"kN4qj1w01Ry6ElG9I3qAVJOZFYLDklPFUdHaKozWtmc","kty":"EC","use":"sig","x":"SzzNgrOM_N0GwQWZPGFcdIKmfoQD6aXIzYm4gzGyPgQ","y":"erYeb884pk0BGMewDzEh_qYDB0aOFIxFjrXdqIzkmbw"}'
PUBLIC_KEY=./pub.jwk.json
#--demo is explicit