Files
redash/setup
Jannis Leidel 712fc63f93 Use flask-talisman for handling backend response headers (#3404)
* Normalize Flask initialization API use.

* Use Flask-Talisman.

* Enable HSTS when HTTPS is enforced.

* More details about how CSP is formatted and write CSP directives as a string.

* Use CSP frame-ancestors directive and not X-Frame-Options for embedable endpoints.

* Add link to flask-talisman docs.

* set remember_token cookie to be HTTP-Only and Secure

* Reorganize secret key configuration to be forward thinking and backward compatible.
2019-03-27 17:24:15 +02:00
..
2018-10-08 09:41:15 +03:00
2018-09-25 21:08:46 +03:00

Setup script for Redash with Docker on Ubuntu 18.04.

This is a reference setup for Redash on a single Ubuntu 18.04 server, which uses Docker and Docker Compose for deployment and management.

This is the same setup we use for our official images (for AWS & Google Cloud) and can be used as reference if you want to manually setup Redash in a different environment (different OS or different deployment location).

  • setup.sh is the script that installs everything and creates the directories.
  • docker-compose.yml is the Docker Compose setup we use.
  • packer.json is Packer configuration we use to create the Cloud images.

FAQ

Can I use this in production?

For small scale deployments -- yes. But for larger deployments we recommend at least splitting the database (and probably Redis) into its own server (preferably a managed service like RDS) and setting up at least 2 servers for Redash for redundancy. You will also need to tweak the number of workers based on your usage patterns.

How do I upgrade to newer versions of Redash?

See Upgrade Guide.

How do I use setup.sh on a different operating system?

You will need to update the install_docker function and maybe other functions as well.