Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Nyx
- Nyx are Google PubSub Subscription Consumer, Consume from certain topic
- and later hit XMLRPC to another server(service).
- ## Installation
- put google credentials in creds directory.
- set all listed environment credential see Below Section.
- using docker:
- `docker-compose up --build`
- ## Environment Variables
- Environments variables:
- | Env Name | Description |
- | ----------- | ----------- |
- | CREDS_FILENAME | Google credential filename. format file ".json" |
- | GOOGLE_APPLICATION_CREDENTIALS | FULL PATH location of Google credentials file in .json |
- | NYX_PROJECT_ID | Google Cloud Project ID |
- | NYX_SUBSCRIPTION_ID | Google PubSub subscription ID e.g `NYX_SUBSCRIPTION_INVOICE` |
- Create .env file and put these lines. Change to the actual values:
- ```env
- export CREDS_FILENAME=<<CREDENTIAL FILENAME>>
- export NYX_PROJECT_ID=<<PROJECT_ID_IN_GOOGLE_CLOUD>>
- export NYX_SUBSCRIPTION_<<NAME>>=<<SUBSCRIPTION_ID>>
- export GOOGLE_APPLICATION_CREDENTIALS=<<FULL_PATH_OF_CREDENTIAL_FILENAME>>
- ```
- To activate, run this command:
- ```console
- source .env
- ```
- ## Usage
Advertisement
Add Comment
Please, Sign In to add comment