Typically this is "0.0.0.0" for unix-based systems and "localhost" for Microsoft Windows. The following environmental variables are loaded if the values were not found in a config.yaml file. The following config file will set a specific port 4321 and host localhost to listen on, for any route request, then forward to the environmental variable's GOOGLE_CHAT_URL defined target. If any value is not found in the YAML file, it will fallback to the environmental variable value (if any), and then to the proxy default (if any). If you want to define the root route /, use an "_" key. If the value is empty or null, the default Google Chat endpoint (URL) Key-values of channels and Google Chat endpoints, or just a Google Chat endpoint on it's own. The key is the route to accept the slack request, and the value is either an object defining Using the YAML file gives you more flexibility than utilizing the environmental variables because you can setup multiple endpoints with differingĮach endpoint is defined as a key-value object. In the docker container, the full path is /srv/config.yaml. You can configure the proxy using a config.yaml file in the local directory. env file present in the current directory if it is present. The proxy is configured using environmental variables and/or a config.yaml file, it will also load environmental variables from a. This project allows you to simply utilize a Slack-configurable webhook in a third-party application (provided it let's you set a custom URL) and have that webhook request routed to your Google Chat instead. This project was created when Slack is well supported in many third-party applications, but Google Chat is relatively new with little to no existing support. It listens on the configured port and IP address and then forwards a transformed request to the configured Google Chat webhook URL. This project is a simple server that accepts Slack-formatted webhook requests and transforms them into Google Chat webhook requests.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |