Repository navigation
Expand file tree
/
Copy pathconfiguration.yml.example
More file actions
86 lines (70 loc) · 3.69 KB
/
Copy pathconfiguration.yml.example
File metadata and controls
86 lines (70 loc) · 3.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#
# Edit this file to control the behaviour of the parser
#
# The root directory of the openaustralia repo
# Note this is NOT the patched Australian version of the TheyWorkForYou website (twfy is a git submodule under this)
# For example, Under Mac OS X this is likely to be something like:
# web_root: "/var/www/oa"
# Under production it is:
# web_root: "/srv/www/production/current"
# or for development:
web_root: "../openaustralia"
# Production has the following (not required for development)
# html_cache_path: "/srv/www/production/shared/html_cache"
# Log path is under the openaustralia-parser submodule of web_root, eg for production:
# log_path: "/srv/www/production/shared/parser.log"
log_path: "./parser.log"
# Morph API key
morph_api_key: XXXXXXXXXXXXXXXXXXXX
# -------------------------------------------------------
# Standalone development override of twfy/conf/general (so you don't need PHP)
# database_host: localhost
# database_user: openaustralia
# database_password: openaustralia
# database_name: openaustralia
# file_image_path: "tmp/file_images/"
# members_xml_path: 'tmp/members_xml_output/'
# xml_path: "../openaustralia/pwdata/"
# regmem_pdf_path: "regmem/scan/"
# base_dir: "tmp/twfy-www-docs/"
# sentry_dsn: ""
# -------------------------------------------------------
# Should hopefully NOT HAVE TO CHANGE ANYTHING BELOW HERE
# NOTE: Of the URLs below, only election_web_root is still read by the code
# (parse-member-links.rb). The rest are legacy settings from the retired
# ParlInfo Web service and old ABC pages, kept for reference only.
# This is where the parser looks for Hansard data
parlinfo_web_root: "http://parlinfoweb.aph.gov.au/piweb"
# This is the path to the Hansard data that is used for generating links
permalink_parlinfo_web_root: "http://parlinfoweb.aph.gov.au/piweb"
# Links to the biographies of all *current* house members and senators
current_house_members_url: "http://parlinfoweb.aph.gov.au/piweb/browse.aspx?path=Parliamentary%20Handbook%20%3E%20Biographies%20%3E%20Current%20Members"
current_senate_members_url: "http://parlinfoweb.aph.gov.au/piweb/browse.aspx?path=Parliamentary%20Handbook%20%3E%20Biographies%20%3E%20Current%20Senators"
# Links to the biographies of all *former* senators and representatives
former_members_house_and_senate_url: "http://parlinfoweb.aph.gov.au/piweb/browse.aspx?path=Parliamentary%20Handbook%20%3E%20Biographies%20%3E%20Former%20Senators%20and%20Members"
# Alternative version of biography pages for current representatives and senators
alternative_current_house_members_url: "http://www.aph.gov.au/house/members/mi-alpha.asp"
alternative_current_senate_members_url: "http://www.aph.gov.au/Senate/senators/homepages/index.asp"
# List of electorates from website for the ABC's Q&A programme
qanda_electorate_url: "http://www.abc.net.au/tv/qanda/find-your-local-mp.htm"
qanda_all_senators_url: "http://www.abc.net.au/tv/qanda/find-a-senate-member-by-a-z.htm"
# ABC 2007 election results
election_web_root: "http://www.abc.net.au/elections/federal/2007"
# They Vote For You API key
theyvoteforyou_api_key: XXXXXXXXXXXXXXXXXXXX
# -------------------------------------------------------
# Test environment overrides, matching the MySQL in .devcontainer/compose.yaml
# (make services-up). Without these, `bundle exec rspec` falls
# through to whatever twfy/conf/general's dev DB_HOST/DB_USER/etc resolve to
# instead, which won't match this container.
test:
web_root: "/dev/null"
database_host: 127.0.0.1
database_user: root
database_password: root
database_name: openaustralia_test
file_image_path: "tmp/file_images/"
members_xml_path: "tmp/members_xml_output/"
xml_path: "tmp/pwdata/"
regmem_pdf_path: "regmem/scan/"
base_dir: "tmp/twfy-www-docs/"