mirror of
https://github.com/PretendoNetwork/super-mario-maker.git
synced 2026-05-09 04:13:13 -05:00
feat: Add keybase env variable
This commit is contained in:
parent
1e1736431a
commit
8d9abc6035
27
README.md
27
README.md
|
|
@ -49,16 +49,17 @@ All configuration options are handled via environment variables
|
|||
|
||||
`.env` files are supported
|
||||
|
||||
| Name | Description | Required |
|
||||
|-------------------------------------|-----------------------------------------------------------------------|-----------------------------------------------|
|
||||
| `PN_SMM_POSTGRES_URI` | Fully qualified URI to your Postgres server | Yes |
|
||||
| `PN_SMM_AUTHENTICATION_SERVER_PORT` | Port for the authentication server | Yes |
|
||||
| `PN_SMM_SECURE_SERVER_HOST` | Host name for the secure server | Yes |
|
||||
| `PN_SMM_SECURE_SERVER_PORT` | Port for the secure server | Yes |
|
||||
| `PN_SMM_CONFIG_S3_ENDPOINT` | S3 server endpoint | Yes |
|
||||
| `PN_SMM_CONFIG_S3_ACCESS_KEY` | S3 access key ID | Yes |
|
||||
| `PN_SMM_CONFIG_S3_ACCESS_SECRET` | S3 secret | Yes |
|
||||
| `PN_SMM_CONFIG_S3_BUCKET` | S3 bucket | Yes |
|
||||
| `PN_SMM_ACCOUNT_GRPC_HOST` | Host name for your account server gRPC service | Yes |
|
||||
| `PN_SMM_ACCOUNT_GRPC_PORT` | Port for your account server gRPC service | Yes |
|
||||
| `PN_SMM_ACCOUNT_GRPC_API_KEY` | API key for your account server gRPC service | No (Assumed to be an open gRPC API) |
|
||||
| Name | Description | Required |
|
||||
| ----------------------------------- | ---------------------------------------------- | ----------------------------------- |
|
||||
| `PN_SMM_POSTGRES_URI` | Fully qualified URI to your Postgres server | Yes |
|
||||
| `PN_SMM_AUTHENTICATION_SERVER_PORT` | Port for the authentication server | Yes |
|
||||
| `PN_SMM_SECURE_SERVER_HOST` | Host name for the secure server | Yes |
|
||||
| `PN_SMM_SECURE_SERVER_PORT` | Port for the secure server | Yes |
|
||||
| `PN_SMM_CONFIG_S3_ENDPOINT` | S3 server endpoint | Yes |
|
||||
| `PN_SMM_CONFIG_S3_ACCESS_KEY` | S3 access key ID | Yes |
|
||||
| `PN_SMM_CONFIG_S3_ACCESS_SECRET` | S3 secret | Yes |
|
||||
| `PN_SMM_CONFIG_S3_BUCKET` | S3 bucket | Yes |
|
||||
| `PN_SMM_CONFIG_S3_KEY_BASE` | S3 Key prefix | Yes |
|
||||
| `PN_SMM_ACCOUNT_GRPC_HOST` | Host name for your account server gRPC service | Yes |
|
||||
| `PN_SMM_ACCOUNT_GRPC_PORT` | Port for your account server gRPC service | Yes |
|
||||
| `PN_SMM_ACCOUNT_GRPC_API_KEY` | API key for your account server gRPC service | No (Assumed to be an open gRPC API) |
|
||||
|
|
|
|||
|
|
@ -48,6 +48,7 @@ func registerCommonSecureProtocols() {
|
|||
|
||||
commonDataStoreProtocol.SetMinIOClient(globals.MinIOClient)
|
||||
commonDataStoreProtocol.S3Bucket = os.Getenv("PN_SMM_CONFIG_S3_BUCKET")
|
||||
commonDataStoreProtocol.SetDataKeyBase(os.Getenv("PN_SMM_CONFIG_S3_KEY_BASE"))
|
||||
|
||||
commonDataStoreProtocol.GetObjectInfoByDataID = datastore_db.GetObjectInfoByDataID
|
||||
commonDataStoreProtocol.GetObjectInfoByPersistenceTargetWithPassword = datastore_db.GetObjectInfoByPersistenceTargetWithPassword
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user