aboutsummaryrefslogtreecommitdiffstats
path: root/conf
Commit message (Collapse)AuthorAgeLines
* Make front page cache time configurable.Matthew Somerville2019-02-04-1/+9
| | | | | Add a configuration variable to use for the front page stats/ recent list, plus the max-age of `/reports`.
* Example systemd service unit fileSam Pearson2018-10-03-0/+21
| | | | | | | | This adds a systemd service unit file for managing the FixMyStreet Catalyst process manager. This also updates the commonlib submodule with matching changes to our install scripts.
* Add check for PIDFILE to init script stop actionSam Pearson2018-10-02-1/+5
| | | | | | The install script calls a service restart at build, this failed if the stop action in the init script doesn't check for the existence of the PIDFILE first, so check.
* [Dependencies] Add libxml2-dev to packages filesSam Pearson2018-09-28-0/+3
| | | | | This is required to build some of the Perl modules pulled in by the addition of `Net::Amazon::S3`.
* [Docker] Update example config to support S3 file storageSam Pearson2018-09-28-3/+23
|
* Add S3 photo storage backendDave Arter2018-09-28-0/+7
|
* Factor out photo storage into PhotoStorage::FileSystem backendDave Arter2018-09-28-3/+16
|
* [Docker] Initial Dockerfile & docker-compose setupSam Pearson2018-09-28-0/+289
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This includes four containers: app, memcached, nginx, and postgres. The preinit script is used at container startup to ensure the database is initialised. Includes a volume for the Postgres database to permit persistence. Also sets the `PGDATA` variable to a subdirectory to support optional use of a filesystem mount. The repo/branch can be specified at build time. If `SUPERUSER_EMAIL` and `SUPERUSER_PASSWORD` are set when the FMS container starts the preinit script will pass these to `bin/createsuperuser` when it starts up. These have been set to test values in the supplied Docker Compose configuration. Reverse proxy issue =================== If nginx and fms were on the same machine, ReverseProxy would automatically be in use, but via docker containers they are not. Do we need to force it to be switched on? Let's see. There are four possible options, with their outcome: * port not in Host, ReverseProxy not in use Anything using the automatically-generated base instead of BASE_URL uses port 9000, meaning those links don't work. * port not in Host, ReverseProxy in use Anything using the automatically-generated base instead of BASE_URL uses port 80, meaning those links don't work (they would if you had docker-compose listen on port 80, being then a similar situation to e.g. the AMI image). * port in Host, ReverseProxy not in use This works *unless* the port is 80, just to be contrary to the above; in that case it is stripped and :9000 is put back on, meaning those links again don't work. I realise we use 8000, but would be confusing if someone tried it out. * port in Host, ReverseProxy in use This works in all scenarios, and thus is what we go with.
* [Docker] Support Docker builds in install scriptsSam Pearson2018-09-28-0/+15
| | | | | | | - Adds support for additional variables intended to control when to install postfix and postgres. - Skips nginx setup and integration when performing a docker build. - Don't print usage during docker build
* Switch to direct app server, not FastCGI.Matthew Somerville2018-09-26-24/+27
|
* Add configuration option for memcached hostSam Pearson2018-09-20-0/+4
| | | | | | | Previously we assumed that any memcache instance would be running on the local loopback interface. This commit makes this configurable with a `MEMCACHED_HOST` option. If left unset, this will default to `127.0.0.1`.
* Update fixmystreet.org link to https.Matthew Somerville2018-05-02-5/+5
|
* Script to remove expired sessions.Matthew Somerville2018-02-09-0/+1
| | | | | This also can set up users so that the admin "Log user out" function works correctly.
* Allow ‘report as another user’ to only provide a phone numberDave Arter2018-02-07-1/+4
|
* Reinstate appcache_enabled staging flagDave Arter2017-11-24-0/+3
| | | | | This can optionally disable appcache for superusers which can be handy in development.
* Only include offline JavaScript if needed.Matthew Somerville2017-11-15-2/+0
|
* Add option to use a Twilio Messaging Service.Matthew Somerville2017-10-12-0/+1
|
* Add ability to log in on /auth via text.Matthew Somerville2017-09-30-0/+7
| | | | A confirmation code is sent via Twilio to be entered on the site.
* Add SIGNUPS_DISABLED config flagDave Arter2017-08-31-0/+4
|
* Add LOGIN_REQUIRED config keyDave Arter2017-08-31-0/+3
| | | | If set to 1, this restricts all pages on the site to logged-in users.
* Document fetch-comments-24hs in crontab example.Matthew Somerville2017-08-15-2/+4
| | | | In the absence of making any changes. Fixes #1739.
* Add switch-site script for easily switching configZarino Zappia2017-08-10-1/+1
| | | | | | | Given a set of config files of the format `conf/general-{cobrand}.yml` this script lets you easily create and recreate a symlink at `conf/general.yml` that points to the cobrand config of your choice. The test suite also then uses this naming convention.
* update mapit url to https in example webserver configsStruan Donald2017-07-27-3/+3
| | | | | | Now that MapIt is https only the proxy pass URLs need to be https otherwise we proxy back the 301 redirect and various bits of the JavaScript fail the pre-flight CORS check.
* Make sure required packages installed on stretch.Matthew Somerville2017-07-04-0/+4
| | | | | These two packages were previously installed as a dependency of postgresql-server-dev-all, but are no longer on stretch.
* Add MAPIT_API_KEY supportDave Arter2017-06-08-0/+4
|
* Upgrade to using Email::Sender.Matthew Somerville2017-03-28-1/+2
| | | | | | | | | | Email::Send is long deprecated and uses submodules that no longer work correctly (e.g. Net::SMTP::TLS breaks with recent IO::Socket::SSL). We create an Email::Sender subclass to perform the same functionality and this also simplifies the email code with simpler envelope handling. Bundle Email::Sender::Transport::SMTP to include fix from https://github.com/rjbs/Email-Sender/issues/46
* Allow staging sites to turn off appcache.Matthew Somerville2017-01-10-0/+2
|
* Move staging flags to their own config variable.Matthew Somerville2017-01-10-8/+10
|
* If running a dev site, skip some restrictions.Matthew Somerville2016-09-15-0/+3
| | | | This makes it easier to perform manual testing of cobrands.
* Make UPLOAD_DIR/GEO_CACHE relative to project rootMatthew Somerville2016-08-10-0/+1
| | | | | If they are absolute already, do nothing. Switch a couple of uses to Path::Tiny as well.
* Add config for Open311 request limit, default 1000.Matthew Somerville2016-08-10-1/+2
| | | | Fixes #1313.
* Generate unique config per test run.Matthew Somerville2016-08-09-1/+1
| | | | | | | | This allows multiple test suites to run simultaneously (beforehand, a second run would overwrite the same config file and lose its database connection). Clean up the created config file on exit.
* Use normal user authentication to control access to /adminMatthew Somerville2016-07-19-14/+0
| | | | | | | | | - Adds is_superuser flag to User - Logged-in user must be a superuser or have from_body set in order to access anything within /admin - has_permission_to on a superuser will always return true - Only superusers can create/grant superusers - New `createsuperuser` command for creating superusers
* Make sure map JS works through an admin proxy.Matthew Somerville2016-07-04-2/+2
| | | | | Tidy up use of absolute URLs when in the admin. Have the 404 handler spot static files in admin as a fallback.
* Consolidate packages files.Matthew Somerville2016-06-03-29/+1
| | | | | Have a generic package install file that works on Debian wheezy and jessie, and Ubuntu precise, trusty and xenial. Drop Debian squeeze.
* Improve CSS compilation.Matthew Somerville2016-05-31-4/+4
| | | | | | | | Move to using libsass via CSS::Sass, and stop using compass, supplying any used mixins directly. This removes the need for any ruby/gem based installation, and greatly increases the speed of compilation. make_css is also enhanced, bringing in the file monitoring previously done by a separate script and improving its dependency monitoring.
* Fallback if request to Gaze fails.Matthew Somerville2016-05-18-1/+1
| | | | Fixes #1286.
* Prerequisites (new modules, db, config).Matthew Somerville2016-01-22-0/+6
|
* Upgrade Google geocoder to version 3 of the API.Matthew Somerville2015-08-28-3/+1
|
* [fixmystreet.com] Remove special Report-It code.Matthew Somerville2015-03-13-8/+0
|
* Use config variable for setting proxy trust.Matthew Somerville2015-02-24-0/+4
| | | | | | Rather than hardcoding domain names, add a SECURE_PROXY_SSL_HEADER variable that provides a trusted HTTP header and value that can be used to determine if we're behind a HTTPS proxy.
* Add new "next steps" to bottom of success pages.Zarino Zappia2015-02-19-3/+0
| | | | Remove the old CrossSell code. Fixes #972.
* Remove need to have to specify en-gb in LANGUAGES.Matthew Somerville2015-02-13-1/+0
| | | | | | Instead, add it if not present at the negotiation stage. Even if not negotiated, we currently need it to be present for the in_gb_locale() calls to work.
* Add example nginx client_max_body_size.Matthew Somerville2015-01-20-0/+2
| | | | This will be used by the installation script. Fixes #995.
* Remove need for cron-wrapper with existing scriptsMatthew Somerville2015-01-19-13/+13
| | | | | Call the necessary boilerplate in each script so you can call them directly. Remove boilerplate from files that don't need it.
* Use same handling for cron and non-cron email.Matthew Somerville2015-01-13-1/+1
| | | | | This means that e.g. SMTP authentication is used when set up by all emails, not just non-cron ones. Fixes #988.
* Add a script to always test on a clean db/config.Hakim Cassimally2014-12-12-0/+1
| | | | Fixes #786.
* Provide guidance at top of example config file.Matthew Somerville2014-11-26-4/+11
|
* Update graph crontab lines to use wrapper.Matthew Somerville2014-11-12-2/+2
| | | | | After the changes in b3c664b, these two lines need to be called with the cron-wrapper.
* Remove liberror-perl and libsoap-lite-perl.Matthew Somerville2014-11-05-7/+0
| | | | | | Try and save other people the potential pain of installing SOAP::Lite; only UK FixMyStreet and Zurich geocoder use it, so set it as an optional feature in the cpanfile instead.