Update Swagger Documentation
go get github.com/swaggo/swag/cmd/swag
go install github.com/swaggo/swag/cmd/swag
swag init
Local Run
go run main.go
aws-vault exec waosverse-dev --backend=pass -- go run main.go
Local Docker Build
docker build . -t waosverse-api:latest
Local Docker Run
docker run waosverse-api:latest
Local Browsing
http://localhost:8080/swagger/index.html#/default/get-string-by-int
Generate HEX Encoded 128-Bit Encryption Key
Secret key: oidc-cookie-encryption-key
openssl rand -hex 16
Configuration
Environment Variables
See .env.examples file.
Secrets
- oidc-cookie-encryption-key - OIDC Cookien Encryption Key (hex encoded 128-bit encryption key)
- oidc-client-secret-google - OIDC Client Secret for Google