Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 1.45 KB

README.md

File metadata and controls

34 lines (22 loc) · 1.45 KB

actions-on-google

The aim of this project is an hub for multiple Actions on Google

Integrations

Install ALL dependencies

PIPENV_VENV_IN_PROJECT=1 pipenv install --dev

Configuration

Take a look to config.py

  • ENVIRONMENT takes the value from FLASK_ENV
  • SSL_CONTEXT_CERT and SSL_CONTEXT_KEY are used only if ENVIRONMENT is not 'development' (you can use letsencrypt to generate them)
  • BASIC_AUTH_USERNAME and BASIC_AUTH_PASSWORD are optional but recommended to enable basic auth
  • SENTRY_DSN is optional and it is the Sentry API key

Usage

Run the app (FLASK_ENV is optional and it defaults to 'production'):

  • PYTHONPATH=".:actions_on_google" FLASK_ENV=development pipenv run python actions_on_google/app.py

Certificate

To renew a certificate the project must be served on port 80 and with basic-auth disabled. Use the command:

  • certbot renew --webroot -w $PROJECT_PATH/actions-on-google/actions_on_google/static/

I will improve it when I have more time

Thanks to