Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pillar/kingfisher_main.sls
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ apache:
servername: collect.kingfisher.open-contracting.org
context:
documentroot: /home/collect/scrapyd
proxypass: http://localhost:6800/
proxypass: http://localhost:6800/ disablereuse=On

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Considered setting disablereuse via a Jinja for loop but since we are only setting one option this solution is more succinct.

authname: Kingfisher Scrapyd
pelican_frontend:
configuration: pelican
Expand Down
2 changes: 1 addition & 1 deletion pillar/registry.sls
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ apache:
servername: collect.data.open-contracting.org
context:
documentroot: /home/collect/scrapyd
proxypass: http://localhost:6800/
proxypass: http://localhost:6800/ disablereuse=On
authname: Kingfisher Scrapyd
registry:
configuration: registry
Expand Down
3 changes: 2 additions & 1 deletion salt/core/systemd/files/scrapyd.service
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ Environment="https_proxy={{ pillar.tinyproxy.url }}"
Environment="no_proxy=localhost,sentry.io,open-contracting.org"
{%- endif %}
WorkingDirectory={{ entry.appdir }}
ExecStart={{ entry.appdir }}/.ve/bin/scrapyd --logfile=/var/log/scrapyd/scrapyd.log --pidfile=
ExecStart={{ entry.appdir }}/.ve/bin/scrapyd --pidfile=
Restart=on-failure
RestartSec=30
LogFilterPatterns="~Pingdom"

[Install]
WantedBy=multi-user.target
Loading