Skip to content

Commit

Permalink
Pushed the /pdf part away from config
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr Pchelko committed Nov 25, 2016
1 parent bd93c0c commit 7cdee92
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config.example.wikimedia.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ default_project: &default_project
pdf:
# Cache PDF for 5 minutes since it's not purged
cache_control: s-maxage=600, max-age=600
uri: https://pdf-electron.wmflabs.org/pdf
uri: https://pdf-electron.wmflabs.org
secret: secret
skip_updates: false

Expand Down
2 changes: 1 addition & 1 deletion config.test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ default_project: &default_project
pdf:
# Cache PDF for 5 minutes since it's not purged
cache_control: s-maxage=600, max-age=600
uri: https://pdf-electron.wmflabs.org/pdf
uri: https://pdf-electron.wmflabs.org
secret: secret
skip_updates: false

Expand Down
2 changes: 1 addition & 1 deletion v1/pdf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ paths:
- get_pdf_from_backend:
request:
method: get
uri: '{{options.uri}}?accessKey={options.secret}&url=https://{{domain}}/wiki/{title}'
uri: '{{options.uri}}/pdf?accessKey={options.secret}&url=https://{{domain}}/wiki/{title}'
return:
status: 200
headers:
Expand Down

0 comments on commit 7cdee92

Please sign in to comment.