Commit Graph

10 Commits

Author SHA1 Message Date
Erik Arvstedt
81bc449043
nginx: Fix gixy test host_spoofing
This patch was generated by replacing:
`proxy_set_header Host $http_host` ->
`proxy_set_header Host $host`

Script:
find . -type f -exec sed -i 's|proxy_set_header Host \$http_host|proxy_set_header Host \$host|g' {} \;

Fixes test error:
```
>> Problem: [host_spoofing] The proxied Host header may be spoofed.
Description: In most cases "$host" variable are more appropriate, just use it.
Additional info: https://github.com/yandex/gixy/blob/master/docs/en/plugins/hostspoofing.md
```

`proxy_set_header Host $host` is indeed the recommended default proxy header setting.
2022-07-11 15:32:37 +02:00
wiz
fa92ba4478
Refactor nginx.conf and other ops scripts for lightning 2022-07-06 17:13:09 +02:00
wiz
c5e0b0fc74
[ops] Fix prod nginx perma-cache URL patterns
Currently we perma-cache everything matching /api/block, but this
is bad because it also matches /api/block-height and /api/blocks/
API endpoints, which shouldn't be perma-cached. Add a trailing slash
to prevent those from getting matched.
2022-06-24 17:52:34 +09:00
wiz
9d1883f925
[ops] Cache /api/block and /api/v1/block for 1 month 2022-06-22 23:26:41 +09:00
wiz
b1749ee6b6
Enable nginx warm cache for all /api/v1/mining API endpoints 2022-03-29 12:07:16 -05:00
wiz
f842316636
Let backend set its own HTTP cache time headers for APIs 2022-01-28 13:59:04 +00:00
wiz
55652130a8
Enable nginx warm cache for mining pools API data 2022-01-28 13:33:29 +00:00
wiz
2cb50c2351
Add nginx cache warmer script for production use 2022-01-13 15:06:13 +09:00
wiz
f0c53a4e5b
Improve nginx caching and use redirects for i18n 2022-01-12 23:12:49 +09:00
wiz
4de1d017ad
Update production configurations + README for v2.3
* Refactor production nginx configuration files
* Update README for new networks, SQL, etc.
2022-01-04 16:38:12 +09:00