Commit Graph

20 Commits

Author SHA1 Message Date
wiz
e918e1fdab
ops: Implement ACL for internal APIs 2024-02-27 11:46:14 +09:00
wiz
f004705896
ops: Add missing HTTP Expires header for fees API 2024-02-06 13:55:44 -05:00
wiz
87a613e4dc
ops: Fix broken nginx cache configuration 2024-02-06 13:53:03 -05:00
wiz
5a7a78cddc
ops: Add new nginx hot cacher 2024-01-26 10:40:21 -05:00
wiz
c7862e19c2
ops: Add /api/v1/fees/recommended to warm cache 2024-01-26 10:26:42 -05:00
wiz
2c820f1cc0
ops: Rewrite nginx config for new services API endpoints 2023-11-18 15:09:02 +09:00
junderw
4972f00a96
Add internal endpoint blocking to all Nginx configs 2023-11-12 05:04:41 +00:00
Jonathan Underwood
502a1c021e
Add suggestions from wiz
Co-authored-by: wiz <j@wiz.biz>
2023-11-12 05:04:41 +00:00
junderw
511b827bf5
Nginx: Ignore all internal-api paths 2023-11-12 05:04:40 +00:00
wiz
39bde61538
ops: Set cache time for /api/v1 endpoints to 2 sec 2023-06-16 17:15:41 -07:00
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