Commit Graph

466 Commits

Author SHA1 Message Date
wiz
7970f4ae88
ops: Use unix sockets to query esplora from nginx 2023-03-13 16:35:27 +09:00
wiz
730c1ae2d7
Merge branch 'master' into hunicus/manual-deployment-enterprise 2023-03-12 16:57:49 +09:00
nymkappa
6327ce7c89
Sort asn numerically - add few more top 10 isp in warm cache 2023-03-10 09:21:44 +09:00
wiz
ead7a13ff0
i18n: Enable Danish, disable Catalan 2023-03-08 21:14:46 +09:00
wiz
8adacd4a0e
ops: Add missing unfurl route in nginx/server-common.conf 2023-03-08 16:14:43 +09:00
softsimon
4e39c27c75
Adding 4 year button to mempool graph
fixes #3218
2023-03-04 18:48:16 +09:00
hunicus
e7ad857cc9 Specify manual deployment support for enterprise sponsors [readme] 2023-03-04 18:24:02 +09:00
wiz
5fb4eac4b7
ops: Add missing /api/address-prefix nginx route for bisq 2023-03-04 15:53:49 +09:00
wiz
ec0d8b7c48
ops: Remove fork repos from upgrade script 2023-03-02 19:30:02 +09:00
wiz
75faa2b45a
Merge pull request #3150 from mempool/ops/update-warm-cache-new-pool-slugs
ops: Update nginx-cache-warmer for new pool slugs API
2023-02-26 16:20:51 +09:00
softsimon
bc3400ce75
Enable GBT mempool in all production configs 2023-02-26 10:13:25 +04:00
wiz
7ad207766b
ops: Update nginx-cache-warmer for new pool slugs API 2023-02-26 13:54:45 +09:00
nymkappa
6c3a273e75
Enabled coinstatsindex=1 2023-02-25 14:22:16 +09:00
wiz
b50e973573
ops: Enable CPFP indexing for mainnet 2023-02-25 12:14:07 +09:00
wiz
4203972a49
Merge branch 'master' into mononaut/raise-memory-limits 2023-02-22 15:29:17 +09:00
wiz
952e540d65
ops: Add 250ms delay between warm cache requests 2023-02-21 18:41:12 +09:00
wiz
85251fcd5c
ops: Fix typo in mainnet lightning backend config 2023-02-20 16:09:40 +09:00
wiz
ca15887e4b
ops: Fix another typo in build script credentials sed 2023-02-20 15:58:07 +09:00
Felipe Knorr Kuhn
c260b4f0f2
Merge branch 'master' into mononaut/raise-memory-limits 2023-02-19 13:56:28 -08:00
wiz
e7a19dfe2f
ops: Fix mempool build script lightning variables 2023-02-18 15:23:02 +09:00
wiz
87cda325a5
ops: Fix lightning mysql credentials usage 2023-02-18 12:37:06 +09:00
Mononaut
77686821ba
Raise production memory limits
Increases maxmempool production bitcoin.conf setting to 2GB,
and raises `npm run start-production` nodejs memory limit to 8GB
2023-02-17 10:12:33 -06:00
Mononaut
8f2255a7a2
Add audit / block health config feature flag 2023-02-14 12:32:30 -06:00
wiz
e3a82dae83
Merge pull request #2921 from mempool/ops/add-mempool-reset-script
ops: fix wildcards in mempool-reset-all script
2023-01-08 14:22:16 +09:00
wiz
5a8d1795a6
ops: fix wildcards in mempool-reset-all script 2023-01-08 13:11:59 +09:00
wiz
0fdb5099e1
Merge pull request #2920 from mempool/ops/add-mempool-reset-script
ops: add mempool-reset-all script with ./reset symlink
2023-01-08 13:09:47 +09:00
wiz
33d6892aa4
ops: add mempool-reset-all script with ./reset symlink 2023-01-08 13:05:50 +09:00
wiz
472d00a067
ops: add tk7 nodes to prod bitcoin.conf 2023-01-08 13:01:05 +09:00
wiz
d987669b1e
ops: fix mysql_credentials path in install/build scripts 2023-01-08 12:56:27 +09:00
wiz
667fc4ea18
Set LIGHTNING: true in prod frontend config 2023-01-05 23:35:53 +09:00
softsimon
fbbd86d8e0
Updating nginx to support lithuanian 2022-12-26 22:45:25 +04:00
wiz
ab69c03d8d
Merge pull request #2714 from Emzy/ops/cln-bitcoin-link
Add symlink to bitcoin config for user cln in prod install
2022-12-26 21:07:38 +09:00
wiz
efa352821a
Merge pull request #2713 from Emzy/ops/cln-crontab
Add comandline options to cln on FreeBSD in prod install
2022-12-26 21:07:21 +09:00
wiz
059d5a94a9
Merge pull request #2712 from Emzy/ops/mysql-fix
Mysql user creation fix in prod install
2022-12-01 15:37:53 +09:00
wiz
100c1b292a
Merge pull request #2750 from mempool/ops/increase-nginx-max-concurrent-streams
[ops] Increase nginx max concurrent streams
2022-11-30 22:49:48 +09:00
softsimon
8117b9799c
Adding production config to enable gbt audit. 2022-11-30 22:14:41 +09:00
wiz
a9e766046f
[ops] Increase nginx max concurrent streams 2022-11-30 18:10:47 +09:00
wiz
e08902b85b
Fix nginx redirects for /liquid etc. 2022-11-23 14:09:54 +09:00
wiz
235ac204b4
Merge branch 'master' into frontend_runtime_config 2022-11-21 17:46:02 +09:00
softsimon
67cbbda04b
Set mempool enabled to false in production. 2022-11-21 17:26:56 +09:00
Stephan Oeste
5d95eb475e
Add symlink to bitcoin config for user cln in prod install 2022-11-20 14:55:00 +01:00
Stephan Oeste
c57542c8ae
Add comandline options to cln on FreeBSD in pro install 2022-11-20 14:39:17 +01:00
Stephan Oeste
dbc2d752bc
Mysql user creation fix in prod install 2022-11-20 12:48:55 +01:00
Felipe Knorr Kuhn
4fc355a05d
Merge branch 'master' into frontend_runtime_config 2022-11-07 07:11:45 -08:00
wiz
b6d4e6b993
[ops] Fix nvidia-driver package name 2022-11-07 15:44:25 +09:00
Felipe Knorr Kuhn
06eeaf68e8
Merge branch 'master' into frontend_runtime_config 2022-11-06 18:18:11 -08:00
wiz
64426fa9c9
Merge pull request #2646 from Emzy/ops/zero-base-fee
Configure zero base fee as default for core lighting
2022-11-06 20:36:45 +09:00
Stephan Oeste
f3c947685a
Configure zero base fee as default for core lighting 2022-10-17 18:53:46 +02:00
Felipe Knorr Kuhn
81d35d9401
Update nginx cache settings for the frontend config files 2022-10-15 19:44:34 -07:00
wiz
1eda695630
Fix unfurler config set network to liquid 2022-09-10 05:39:03 +09:00
Erik Arvstedt
22def9b01c
frontend: Don't copy resources to language dirs
Since 355e89ce5, the frontend references resources via root-relative URLs.
This means that `resources` dirs in the language dirs are no longer
accessed and can be removed.

Achieve this by defining a specific `assets` production config that
doesn't include `src/resources`.

As of fd35c8f4a, this shrinks the frontend size by 55% (279M -> 124M).

Also, the nginx location configs now can be simplified.
2022-09-09 14:42:55 +02:00
wiz
07978bc3d4
Merge pull request #2454 from Emzy/ops/cahnge-restart
Remove the mempool restart script in prod install
2022-09-07 15:02:34 +02:00
wiz
4a2c35c81b
[ops] Add missing unfurl nginx route 2022-08-30 16:50:31 +02:00
wiz
af805f15c7
Merge pull request #2441 from mempool/nymkappa/feature/ip-check
Fix wrong ASN for Lunanode ip ranges
2022-08-30 15:53:19 +02:00
Stephan Oeste
f489ec6cee
Remove the mempool restart script in prod install 2022-08-30 15:40:13 +02:00
Stephan Oeste
b0492f52a4
Install nvidia-driver, xorg and chromium if GPU is pressent on prod install 2022-08-30 15:27:47 +02:00
wiz
8e236e6594
Merge pull request #2450 from Emzy/ops/nginx-freebsd
No nginx configuration for FreeBSD
2022-08-30 13:22:18 +02:00
Stephan Oeste
e27b97f0f4
No nginx configuration for FreeBSD 2022-08-30 13:10:22 +02:00
wiz
2b333d513c
Merge pull request #2438 from Emzy/ops/clone-lightning 2022-08-30 12:17:59 +02:00
wiz
bd690951e7
Merge pull request #2446 from Emzy/ops/cln-dirs 2022-08-30 12:13:45 +02:00
wiz
b0fb93f7be
Merge pull request #2447 from mempool/ops/setup-3-unfurlers
Add unfurler configs for 3 sites
2022-08-30 11:47:58 +02:00
wiz
0b4f17c129
Add unfurler configs for 3 sites 2022-08-30 11:28:25 +02:00
Stephan Oeste
31c21137b0
Add mempool user to cln group and set data dirs rights on prod install 2022-08-30 10:22:05 +02:00
nymkappa
1d571c284c
Fix wrong ASN for Lunanode ip ranges 2022-08-29 23:36:18 +02:00
Stephan Oeste
45f2b016e1
Remove cache warmer from crontab. Now part of ./start script. 2022-08-29 22:25:35 +02:00
Stephan Oeste
d36ae1476b
Add mempool lighting explorer to the prod installer 2022-08-29 22:03:12 +02:00
wiz
9c606a6240
[ops] Set kill script to always return true 2022-08-29 12:45:02 +02:00
wiz
73bf52dc58
Use mainnet repo for nginx cache warmer script 2022-08-29 10:58:07 +02:00
nymkappa
80d6ec580d
Add new lightning endpoints to warm cache 2022-08-29 09:46:23 +02:00
wiz
f50bba1d39
[ops] Fix typo in build script 2022-08-28 16:26:06 +02:00
wiz
38fa8f58b7
Merge pull request #2406 from Emzy/ops/fix-upgrade-script
Only source mysql_credentials if present in prod install
2022-08-28 16:17:21 +02:00
wiz
5d0547af48
Merge pull request #2407 from Emzy/ops/late-start-cln
Start cln after Bitcoind in prod installer
2022-08-28 14:31:54 +02:00
wiz
b7bf4ba010
Merge pull request #2419 from mempool/wiz/add-unfurl-to-ops-scripts
[ops] Update prod scripts for unfurler and cache warmer
2022-08-28 14:01:36 +02:00
wiz
8ec61dd603
Update ops scripts for unfurler and cache warmer 2022-08-28 14:00:20 +02:00
wiz
6f87fd9c89
[ops] Add production lightning backend configurations 2022-08-27 18:57:59 +02:00
Stephan Oeste
c2c7448c45
Start cln after Bitcoind in prod installer 2022-08-27 15:58:01 +02:00
Stephan Oeste
3b2061bb5c
Only source mysql_credentials if present in prod install 2022-08-27 15:52:42 +02:00
wiz
004dcebc19
[ops] Add nginx entrypoints for unfurler daemon 2022-08-27 14:17:17 +02:00
wiz
bba9f2608a
[ops] Add nginx placeholders for unfurlbot configuration 2022-08-27 13:55:30 +02:00
wiz
a48f116bcd
Merge pull request #2388 from Emzy/Fix-syslog-path
Fix path for newsyslog configs in prod installer
2022-08-26 00:28:56 +09:00
Stephan Oeste
dc4cd96fc0
Fix path for newsyslog configs in prod installer 2022-08-24 17:49:56 +02:00
wiz
f888011191
Merge pull request #2386 from mempool/wiz/dont-alert-for-warnings
[ops] Change keybase notifications to ERR or higher priority
2022-08-25 00:11:25 +09:00
Stephan Oeste
fd8ed4bbdf
Add .local/bin to cln's path and install git-lfs in prod install 2022-08-24 16:21:36 +02:00
wiz
71002ee119
[ops] Change keybase notifications to ERR or higher priority 2022-08-24 21:59:05 +09:00
nymkappa
bd1d9573d6
Reduce api size for channel world map in ln dashboard - added spinner - update cache warmer 2022-08-22 21:36:02 +02:00
wiz
e0d677b01c
Merge branch 'master' into ops/add-core-lightning 2022-08-10 22:38:36 +09:00
wiz
2b2c40f65a
[ops] Fix minor issue for /cln/.zshrc in prod installer 2022-08-10 22:37:22 +09:00
Stephan Oeste
cacd4abd9d
Add Core Lighting for FreeBSD in prod installer 2022-08-05 16:41:00 +02:00
wiz
faa59f59bd
Merge pull request #2236 from mempool/wiz/fix-syslog-perms
[ops] Fix syslog permissions for /var/log/mempool
2022-08-03 00:24:10 +00:00
wiz
82f9814438
[ops] Fix cron jobs to update liquid assets hourly 2022-08-02 01:00:06 +02:00
wiz
b8c82c8f2c
[ops] Fix syslog permissions for /var/log/mempool 2022-08-02 00:08:02 +02:00
wiz
8d1624476f
Remove TOR_HOME variable in prod/install 2022-07-30 15:32:51 +02:00
wiz
8f183945c0
Fix FreeBSD path for torrc 2022-07-30 15:30:55 +02:00
wiz
5d704b0e43
Merge branch 'master' into ops/fix-tor-freebsd 2022-07-30 13:29:19 +00:00
wiz
a413c6ebb8
Separate electrs into bitcoin electrs and elements electrs 2022-07-30 15:25:16 +02:00
Stephan Oeste
21b6c6158a
Fix tor config for FreeBSD on prod installer 2022-07-30 14:01:40 +02:00
Stephan Oeste
eaf7da9acb
Add Unfurl to the prod installer 2022-07-29 20:13:48 +02:00
Stephan Oeste
6e38caee63
Add options for components to be installed in prod install script 2022-07-29 13:08:07 +02:00
wiz
3207e2a285
Merge pull request #2193 from Emzy/ops/mysql-pw
Add random generated mysql passwords on prod install
2022-07-26 22:57:43 +00:00
wiz
7e504e783f
Fix zmq ports in prod bitcoin.conf 2022-07-27 00:47:46 +02:00
Stephan Oeste
412a0ee577
Add random generated mysql passwords on prod install 2022-07-26 22:07:46 +02:00
wiz
58b60c1f68
Route new APIs to services backend 2022-07-21 18:07:28 +02:00
wiz
92da3988da
Reduce nginx cache time for production homepage 2022-07-18 17:47:33 -05:00
wiz
8c5460c319
Merge pull request #2071 from mempool/wiz/add-maxmind-geoipdb
Add maxmind geoip-db update utility to prod installer
2022-07-11 16:42:24 +02: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
Erik Arvstedt
eec82e1bf9 nginx: Fix gixy test http_splitting
Fixes test error:
```
>> Problem: [http_splitting] Possible HTTP-Splitting vulnerability.
Description: Using variables that can contain "\n" or "\r" may lead to http injection.
```

Summary: `$uri` should never be used in `return` statements.
See: https://github.com/yandex/gixy/blob/master/docs/en/plugins/httpsplitting.md

In this case, `$uri` always equals `/`, so just replace it.
2022-07-11 15:25:42 +02:00
wiz
7320fadec9
Add maxmind geoip-db update utility to prod installer 2022-07-11 14:32:38 +02:00
wiz
1037fbe52b
Merge pull request #2041 from Emzy/ops/freebsd-nginx-conf
Install nginx config also for freebsd on prod install
2022-07-09 14:33:24 +02:00
wiz
c5e8a83ebb
Update to Node.js v16.16.0, use shared zlib for prod 2022-07-08 17:22:56 +02:00
wiz
c89fd8c39f
Merge pull request #2040 from Emzy/ops/disable-dialog
Remove the dialog for now on prod install
2022-07-08 16:55:40 +02:00
Stephan Oeste
d0381e7850
Install nginx config also for freebsd on prod install 2022-07-08 15:59:39 +02:00
wiz
83c383b1ec
Print onions on separate lines after prod install 2022-07-08 15:34:10 +02:00
Stephan Oeste
4f22864080
Add mempool build as final step on prod install 2022-07-08 15:29:59 +02:00
Stephan Oeste
92780daa78
Remove the dialog for now on prod install 2022-07-08 15:26:13 +02:00
wiz
bdd3af6b6a
Merge pull request #2032 from Emzy/ops/fix-elements-service
Fix service name to elements and add elements testnet for prod install
2022-07-08 11:57:36 +02:00
Stephan Oeste
6582c8b36f
Fix service name to elements and add elements testnet for prod install 2022-07-08 11:54:26 +02:00
Stephan Oeste
92eef3a6c1
Quote echo output in prod install 2022-07-08 11:05:45 +02:00
Stephan Oeste
eeb84e5d42
Installing Linux nginx config in prod install 2022-07-07 21:09:00 +02:00
wiz
0b0c0b458f
Merge branch 'master' into wiz/fix-npm-install-no-optional 2022-07-07 20:36:58 +02:00
wiz
41f0619572
Merge pull request #2013 from Emzy/ops/set-user-ulimit
Set ulimit highter for all users in prod install
2022-07-07 19:56:38 +02:00
wiz
96b4ea6b50
Merge pull request #1998 from Emzy/ops/fix-linux-crontab
Make user crontab reliable in prod install script
2022-07-07 19:56:06 +02:00
Stephan Oeste
b4bb54212c
Set ulimit highter for all users in prod install 2022-07-07 19:22:47 +02:00
wiz
d57193c269
Fix npm install commands in Dockerfiles and ops scripts 2022-07-07 18:53:17 +02:00
Stephan Oeste
bf969ec8f7
Make user crontab reliable in prod install script 2022-07-07 17:13:09 +02:00
wiz
12807583c2
Merge pull request #2003 from mempool/ops/fix-npm-install-prod
Add `--prod` to `npm install` in ops scripts
2022-07-07 16:36:11 +02:00
wiz
bc068a0d9a
Add --prod to npm install in ops scripts 2022-07-07 13:59:51 +02:00
Stephan Oeste
4ee9a42f3f
Fix startup scripts in prod install 2022-07-07 12:19:51 +02:00
wiz
81c68620a1
Merge pull request #1985 from Emzy/ops/install-linux-crontab
Add crontab creation for linux and bitcoin-minfee.service in prod install
2022-07-06 19:02:27 +02:00
wiz
96007509b5
Merge pull request #1979 from Emzy/ops/cpu-count
Limit make to max cpus in prod install
2022-07-06 18:51:53 +02:00
wiz
bb74a25adc
Merge pull request #1977 from Emzy/ops/fix-shebang-scripts
Disable confirmation prompt for rust and change shebang in scripts to be universal for prod install
2022-07-06 18:51:18 +02:00
Stephan Oeste
989c74699f
Add crontab creation for linux and bitcoin-minfee.service in prod install 2022-07-06 18:31:31 +02:00
wiz
fa92ba4478
Refactor nginx.conf and other ops scripts for lightning 2022-07-06 17:13:09 +02:00
Stephan Oeste
e8829e21e7
Limit make to max cpus in prod install 2022-07-06 14:41:11 +02:00
Stephan Oeste
4a6f3e189d
Change shebang in scripts to be universal for prod install 2022-07-06 12:11:13 +02:00
Stephan Oeste
7154d755c1
Disable confirmation prompt for rust install in prod install script 2022-07-06 11:46:46 +02:00
wiz
7424c65430
Merge branch 'master' into feature/nymkappa/index-difficulty-adjustments 2022-07-06 00:20:39 +02:00
wiz
351d9864fe
Merge branch 'master' into ops/linux-no-patch-electrs 2022-07-06 00:10:19 +02:00
wiz
34195f0e45
Fix typo in prod installer 2022-07-06 00:09:05 +02:00
wiz
9b529d075a
Fix typo in prod installer 2022-07-06 00:08:55 +02:00
wiz
38a98f70d9
Fix typo in prod installer 2022-07-06 00:08:47 +02:00
wiz
544ab890b0
Merge branch 'master' into ops/linux-java-install 2022-07-06 00:05:22 +02:00
wiz
ee5f7600dc
Merge branch 'master' into ops/linux-services 2022-07-06 00:04:11 +02:00
wiz
5b400daf3b
Merge pull request #1970 from Emzy/ops/linux-packages-fix
Fix Linux packages, usernames and path in prod install script
2022-07-06 00:03:59 +02:00
nymkappa
acfdc8163b
Index difficulty adjustments 2022-07-05 16:52:56 +02:00
Stephan Oeste
df73548f7e
Removing commands and enable tor in prod install script 2022-07-05 14:43:01 +02:00
Stephan Oeste
f8c6a7c77b
Omit FreeBSD Elecrs patch for Linux on prod install script 2022-07-05 14:20:35 +02:00
Stephan Oeste
9c65ff3e12
Fix Bisq Java install script name for prod install script 2022-07-05 14:09:32 +02:00
Stephan Oeste
79a90aeec2
Install Bitcoin and Liquid core services in prod install script 2022-07-05 13:54:58 +02:00
Stephan Oeste
d9576bb2e4
Fix Linux packages, usernames and path in prod install script 2022-07-05 13:39:29 +02:00
Stephan Oeste
a34eb9ba88
Fix sed command for Linux systems in the prod install script 2022-07-05 13:19:56 +02:00