These reduce typing to do paster run and paster shell by taking advantage of the standard location of run.ini.
Production installs should work pretty differently and I have a few plans for that. In the meantime, this simplifies away a few of the bits that were ill advisedly trying to help production installs and changes the installer to be better suited to the modern environment with plugins etc. by putting all code in a src/ directory.
Recent updates to the JVM have caused Cassandra to start failing due to the stack size being set too low.
Previously, the subreddit/domain and account precomputers were separate. This merges the two and improves their portability in the process. Because of the increased portability, the precomputer can now be added to the install script by default.
This prevents connections directly on that port from outside.
Between the local filesystem media provider and this change, scraper_q is workable after a default install now.
This media provider is for simple single-server installations where an HTTP server running on the same machine handles serving of the static media files. An appropriate setup with nginx is now the default in the new install script.
This is primarily to show how to set up reddit with HTTPS as well as to make it possible to test HTTPS content. The default installation uses the snakeoil cert and is therefore unauthenticated. A properly signed certificate must be used for actual security.
Assuming the package from our PPA is used, this upgrades to LESS v18.104.22.168 in the process.
Previously, c.secure status was determined based on the domain used. This allows for the status to vary independently of domain for greater flexibility. Note: it is critical that the load balancer strips any X-Forwarded-Proto headers that may've been sent by the client.
This reverts commit d841be7.
This is more easily composable among multiple puppet recipes etc.
For those behind proxies.
Two packages got renamed: python-pybabel -> python-babel python-python-statsd -> python-statsd
cloudsearch_q and scraper_q rely on external services (Amazon CloudSearch and embed.ly respectively) that must be configured manually before they will run properly. To avoid a spew of useless error messages after installation, we'll just set the consumer counts to zero.
template0 is the base template that should be immutable, while template1 is the site-customized version. PostgreSQL defaults to using template1 when doing CREATE DATABASE. Unfortunately, in some situations, template1 will have an encoding set that makes it impossible for us to CREATE the reddit database with UTF-8 encoding.
Automated runs of the installer need to be able to configure the domain ahead of time to ensure that the site will come up in a valid state. The install script will now check for an environment variable, REDDIT_DOMAIN, and use that value if it is present. If not present, it will default to the previous "reddit.local".
It was removed because it's actually rather buggy.
The reddit PPA version of Cassandra no longer auto-starts on install because that was really obnoxious in production. We'll have to make sure to start the service after installing it.
This is more robust than the previous method which slept for 30 seconds and ended up being simultaneously optimistic and pessimistic.
This feature can be disabled with the new ini setting `disable_admin_otp`.
I'm actually quite excited to do this.