Storery is client server application allowing users to store encrypted secrets and access them from multiple devices.
The Storety server's configuration can be customized through command-line flags or environmental variables. Here's a breakdown of the available configuration options:
-
Service Address (
-a
orRUN_ADDRESS
): Specifies the address and port where the Storety server will be hosted. The default value is:8081
. -
PostgreSQL URI (
-d
orDATABASE_URI
): Sets the URI for connecting to the PostgreSQL database. The default value is an empty string. -
JWT Authentication Key (
-j
orJWT_AUTH_KEY
): Provides the key used for JWT token authentication. The default value isdefaultAuthKey
. -
JWT Authentication Lifetime (
-l
orJWT_LIFETIME_HOURS
): Determines the lifetime of the JWT authentication token in hours. The default value is24
. -
JWT Refresh Token Lifetime (
-r
orJWT_REFRESH_LIFETIME_HOURS
): Sets the lifetime of the JWT refresh token in hours. The default value is48
. -
TLS Certificate File (
-c
orTLS_CERT_FILE
): Specifies the path to the TLS certificate file. The default value iscert.pem
. -
TLS Key File (
-k
orTLS_KEY_FILE
): Specifies the path to the TLS key file. The default value iskey.pem
.
To use the app user needs to provide the certificate generated by the server and the server address in a yaml config. Minimal config example:
service_address: "localhost:8081
To run cli client use build the binary and run:
client shell