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
wiz
ad29462a6d
Merge pull request #1965 from Emzy/ops/linux-dir-creation
...
Create directories for Linux in prod install
2022-07-04 19:55:09 +02:00
wiz
d6cd17e4c8
Merge pull request #1964 from Emzy/ops/linux-user-creation
...
User creation for linux in the prod install script
2022-07-04 19:54:34 +02:00
wiz
1383c20703
Merge pull request #1963 from Emzy/ops/freebsd-python-version
...
Update python version for FreeBSD 13 in prod install
2022-07-04 19:53:36 +02:00
Felipe Knorr Kuhn
29557ddd86
Merge branch 'master' into emzy/fix-dialog-error
2022-07-04 09:10:38 -07:00
Stephan Oeste
f80b97af53
Create directories for Linux in prod install
2022-07-04 17:58:36 +02:00
Stephan Oeste
a7b28ca8e8
User creation for linux in the prod install script
2022-07-04 16:57:20 +02:00
Stephan Oeste
383e3e55a5
Update python version for FreeBSD 13 in prod install
2022-07-04 16:29:09 +02:00
Stephan Oeste
e4ac09ea57
Fixed dialog error in production installer
2022-07-03 17:11:25 +02:00
wiz
72492c9b39
Enable zmq for bitcoind, fix ./configure opts
2022-07-03 16:09:29 +02:00
wiz
0f39b3b7d0
[ops] Upgrade prod install to use Bitcoin v23
2022-07-03 12:31:18 +04:00
wiz
f30d26b83c
[ops] Add mononaut's fork repo to list of trusted repos
2022-06-24 17:59:08 +09: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
nymkappa
72a603ac37
Index block summaries in db
2022-06-18 16:48:02 +02:00
wiz
fcb0c51e51
[ops] Fix mempool-build-all script exit code
2022-06-08 03:06:54 +09:00
nymkappa
8db440f164
Update cache warmer
2022-05-23 09:08:41 +02:00
wiz
aa08ac6edc
Merge pull request #1669 from mempool/wiz/fix-prod-install-script-nodejs-v16.15
...
[installer] Add base64 to list of OS package deps
2022-05-19 01:31:49 +09:00
wiz
feafe02ac1
[installer] Add base64 to list of OS package deps
2022-05-19 01:30:02 +09:00
wiz
cf1ea34dad
Merge pull request #1660 from mempool/wiz/fix-prod-install-script-nodejs-v16.15
...
Production installation fixes
2022-05-18 21:16:35 +09:00
wiz
cabf486394
Merge pull request #1625 from knorrium/update_node_version
...
Update the recommended node version to v16.15.0 (LTS)
2022-05-17 21:57:27 +09:00
wiz
ece1cbbaa9
[installer] Fix mempool checkout for bisq instance
2022-05-17 17:43:35 +09:00
wiz
30337095cf
[prod] Clarify syslog.conf syntax for priorities to keybase
2022-05-17 17:26:05 +09:00
wiz
5698468fbf
[installer] Checkout top-level mempool using master branch
2022-05-17 17:25:31 +09:00
wiz
d2e041ec65
[installer] Fix electrs patch sed pattern typo introduced in #1628
2022-05-17 17:13:17 +09:00
wiz
c505ed5f0b
[installer] Configure nvm to install Node.js v16.15.0 / npm v8.5.5
2022-05-17 17:13:03 +09:00
wiz
25e497ce2b
Merge pull request #1636 from mempool/wiz/fix-minfee-node-bitcoin.conf
...
Modify minfee node bitcoin.conf to connect to external peers
2022-05-12 19:43:00 +09:00
wiz
4fdcf39639
Modify minfee node bitcoin.conf to connect to external peers
2022-05-12 19:35:58 +09:00
wiz
8fb41eed44
[ops] Reduce electrs loop time from 5 seconds to 1 second
2022-05-10 21:52:07 +09:00
Felipe Knorr Kuhn
212cced969
Update the recommended node version to v16.5.0 (LTS)
2022-05-09 21:59:09 -07:00
hunicus
f8cec63ad3
Add versions for node.js and npm
2022-05-09 01:07:21 -04:00
hunicus
88711b1d54
Remove fiat from commands
2022-05-09 00:57:48 -04:00
hunicus
e3c7dc1e4d
Refine production readme
2022-05-07 18:35:17 -04:00
nymkappa
31ded69a4c
Update cache warmer
2022-04-15 18:05:58 +09:00
softsimon
14f25e7d63
Merge pull request #1499 from mempool/wiz/fix-newsyslog-for-backend
...
Fix log rotation configuration for mempool backend logs
2022-04-13 18:13:39 +04:00
nymkappa
d8915ad385
Update cache warmer
2022-04-11 21:20:20 +09:00
nymkappa
7dd0173e84
Improve mining graphs timespan selection UX
2022-04-11 18:17:36 +09:00
nymkappa
848e02eca0
Add new api to cache warmer
2022-04-11 15:32:17 +09:00
wiz
918798aca3
Fix newsyslog configuration for mempool backend
2022-04-02 10:14:22 -04:00
wiz
ad89d9d9e8
Merge pull request #1475 from mempool/wiz/enable-nginx-warm-caching-for-all-mining-apis
...
Enable nginx warm cache for all /api/v1/mining API endpoints
2022-03-30 12:26:47 +00:00
nymkappa
d70e183236
Add missing endpoints to cache warmer
2022-03-30 19:52:06 +09:00
wiz
b1749ee6b6
Enable nginx warm cache for all /api/v1/mining API endpoints
2022-03-29 12:07:16 -05:00
wiz
a33d558294
Fix nginx cache warmer script for url slugs
2022-03-29 11:40:37 -05:00
wiz
0561a207d9
Add jq to production deps in install script
2022-03-29 11:25:25 -05:00
nymkappa
1088655b1f
Use slugs in cache warmer
2022-03-30 01:06:42 +09:00
nymkappa
2644f2fb07
Move reward stats to component - Add /api/v1/mining/reward-stats/{blockCount}
2022-03-23 11:54:31 +09:00
wiz
07612a144b
Disable cluster mode in prod bisq backend config
2022-03-21 15:03:36 +00:00
wiz
14a4be743a
Merge pull request #1420 from mempool/wiz/add-minfee-node-to-install-script
...
Add minfee node setup to production install script
2022-03-20 23:14:51 +00:00
wiz
46437919f9
Merge pull request #1419 from mempool/wiz/fix-crontab-backup-script-path
...
Fix path in mempool crontab for daily backup script
2022-03-20 23:14:40 +00:00
wiz
dc54ed5b12
Add minfee node setup to production install script
2022-03-20 23:01:28 +00:00
wiz
5e58db23bb
Fix path in mempool crontab for daily backup script
2022-03-20 22:19:03 +00:00
wiz
d077098154
Enable full block indexing on all Bitcoin networks
2022-03-20 01:29:01 +01:00
wiz
d8de9cb934
Create zfs filesystem for /backup and chown to mempool
2022-03-19 16:02:14 +00:00
wiz
97e280f876
Install mempool crontab from install script
2022-03-19 15:56:29 +00:00
wiz
51b2f9581d
Merge pull request #1411 from mempool/wiz/fix-upgrade-script-for-keybase-alerts
...
Set build script to notify new location based Keybase channels
2022-03-19 15:55:06 +00:00
wiz
7222198c48
Set build script to notify new location based Keybase channels
2022-03-19 15:44:00 +00:00
wiz
b99eb1d533
Add keybase to install script packages for alerts
2022-03-19 15:31:47 +00:00
wiz
bdc028ecc0
Install syslog and newsyslog configuration for keybase alerts
2022-03-19 15:29:45 +00:00
wiz
d17a78715a
Merge pull request #1347 from mempool/wiz/add-mysql-to-install-script
...
Add mariadb-server and mysql db creation to install script
2022-03-12 13:16:40 +00:00
wiz
4b9eef5464
Merge pull request #1350 from mempool/wiz/add-symlinks-for-mempool-scripts-to-installer
...
Create symlinks for mempool scripts in installation script
2022-03-12 12:45:54 +00:00
wiz
6073d4559b
Create symlinks for mempool scripts in installation script
2022-03-12 12:41:33 +00:00
wiz
03faa18bfc
Set git to always rebase from install script
2022-03-12 12:27:24 +00:00
wiz
0daf49b8ad
Add mariadb-server and mysql db creation to install script
2022-03-12 12:19:49 +00:00
wiz
ed488a763d
Remove old install script, merge remaining stuff into upgrade script
2022-03-12 11:52:19 +00:00
wiz
9786f1794f
Install production backend/frontend configurations from master
2022-03-12 10:53:37 +00:00
wiz
597c62ede3
Remove INDEXING_BLOCKS_AMOUNT from mainnet frontend configuration
2022-03-12 10:39:28 +00:00
wiz
f8787e525b
Add production frontend configurations
2022-03-12 10:34:17 +00:00
wiz
6fc0311b8e
Merge branch 'master' into wiz/installer2
2022-03-11 16:17:51 +00:00
wiz
e7ab595811
Fix order of operations in install script breaking things
2022-03-11 15:03:14 +00:00
wiz
ca2e29acf8
Install nvm.sh and build NodeJS from install script
2022-03-11 14:51:08 +00:00
wiz
589f3c5bb5
Create $HOME/.zshrc file for all users in install script
2022-03-11 14:35:58 +00:00
wiz
22f1ef9d22
Remove sudoers file modifications from install script
2022-03-11 14:14:45 +00:00
wiz
bee0cf2c65
Fix electrs-start-liquidtestnet configuration in install script
2022-03-11 14:11:38 +00:00
wiz
a140d28a0e
Fix zfs filesystems and permissions in installation script
2022-03-10 12:14:40 +00:00
wiz
1bc9f106a1
Add signet and liquidtestnet to install script
2022-03-09 20:59:12 +01:00
wiz
742df00701
Add missing electrs-start-liquid in install script
2022-03-08 21:22:11 +01:00
wiz
1e87c3857b
Add new production installation script and related files
2022-03-08 20:46:58 +01:00
nymkappa
f23f7f1cfa
Cleanup empty block in api response - Update cache warmer
2022-03-08 20:46:19 +01:00
nymkappa
c419b7dd1a
Add new api endpoint to cache warmer
2022-02-25 10:21:16 +09:00
nymkappa
6e62c62855
Add /api/v1/mining/hashrate/* apis to the cache warmer
2022-02-21 18:01:09 +09:00
wiz
01d6f4f737
Fix nginx configuration for liquid assets APIs
2022-02-07 03:34:16 +04:00
wiz
f0398e906d
Add nginx configuration for liquid assets APIs
2022-02-07 03:34:15 +04:00
nymkappa
e48a2f73e4
Replaced /mining/pools?interval=X by /mining/pools/X
2022-02-02 19:03:07 +09: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
493dbb1b1a
Increase nginx send_timeout and keepalive_requests
...
Fixes #425
2022-01-27 05:56:38 +00:00
wiz
4787b6353a
Merge pull request #1142 from mempool/wiz/update-nginx-conf-for-services-apis
...
Update nginx.conf for mempool.space services APIs
2022-01-15 06:22:44 +00:00
wiz
a710934830
Update production nginx.conf resource cache times
2022-01-14 22:35:25 +09:00
wiz
9a47191e10
Update nginx.conf for mempool.space services APIs
2022-01-14 20:56:41 +09:00
wiz
ee1985bb3d
Fix newsyslog.conf owner and pidfile location
2022-01-14 19:21:42 +09:00
wiz
b501f7228c
Fix typo in nginx-cache-warmer script
2022-01-13 17:59:51 +09: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
cc621b10ce
Update Tor onion hostnames for bisq.markets and liquid.network
2022-01-11 11:18:22 +09:00
wiz
0106f44129
Add production/torrc file to git repo
2022-01-10 18:37:54 +09:00
softsimon
d27b125848
Merge branch 'master' into simon/removing-sql-import-references
...
# Conflicts:
# production/README.md
2022-01-05 13:51:58 +04:00
softsimon
24f76f2f37
Remove all references to SQL tables import
...
fixes #1045
2022-01-05 13:26:36 +04:00
wiz
81bb31090e
Use upstream hostnames in production nginx configuration
2022-01-05 18:12:05 +09:00
wiz
c778e84247
Add missing } at end of nginx/server-common.conf
2022-01-04 17:27:37 +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
wiz
853314ba58
Add missing liquidtestnet backend to upgrade script
2021-12-31 06:55:16 +09:00
wiz
96e8f45e5b
Add support for liquidtestnet in production backend and nginx
2021-12-28 15:20:11 +09:00
wiz
9e8ee4fedc
Tweak upgrade script to search for remote origin branches
2021-12-09 18:12:06 +09:00
wiz
638d6d896a
Update newsyslog-mempool-nginx.conf for all nginx log paths
2021-11-18 15:28:44 +09:00
wiz
836f0f065d
Enable i18n locale Thai (th)
2021-11-17 21:03:35 +09:00
wiz
9f68f57d8a
Enable address autocomplete for all networks
2021-11-10 07:56:07 +01:00
wiz
f90e19c767
Update production backend configuration files
...
* Set syslog priority to DEBUG since we're not Raspberry Pi
* Add 2nd core RPC configuration stubs for mainnet / liquid
2021-09-25 01:19:33 +09:00
softsimon
07ba2f6ecc
Merge pull request #792 from mempool/i18n/add-macedonian
...
Add new locale: Macedonian (mk)
2021-09-17 13:54:03 +04:00
wiz
d22dc0888a
Add new locale: Macedonian (mk)
2021-09-17 15:03:52 +09:00
wiz
75fb27c690
Add new locale: Romanian (ro)
2021-09-17 15:02:15 +09:00
wiz
3fad765269
Add newsyslog.conf for nginx log rotation - delete logs after 90 days
2021-09-11 08:40:58 +09:00
wiz
beb834bc30
Update syslog.conf and upgrade/restart scripts for new keybase channels
2021-09-02 19:30:54 +09:00
wiz
ca6df488c5
Fix missing fetch command in upgrade script
2021-08-21 21:56:42 +09:00
wiz
1e018a6aa5
Fix typo/bug in mempool-logger script
2021-08-21 15:39:15 +09:00
wiz
0a627f96be
Tweak production syslog configuration
2021-08-21 15:19:29 +09:00
wiz
17a8e67d8a
Modify restart script to log restart events, don't restart services
2021-08-21 15:06:50 +09:00
wiz
815c2c5ad5
Modify upgrade script for PR branch deployment, tweak logging
2021-08-21 14:51:19 +09:00
wiz
7e89de4612
Send deployment notifications to mempool.dev keybase group
2021-08-20 21:52:54 +09:00
wiz
8bfd315ba3
Rewrite production upgrade script to handle all 3 sites
2021-08-14 06:03:30 +09:00
wiz
994eb378af
Update production nginx-mempool.conf for donations API endpoint
2021-08-11 01:00:17 +09:00
wiz
1223c58a98
Add missing --db-dir
option in electrs-start-liquid script
2021-08-08 05:18:11 +09:00
wiz
7d3757676f
Enable 'ca' locale for Catalan
2021-08-08 01:05:42 +09:00
wiz
857a5ff6fc
Add missing asset_registry_db repo path for liquid electrs backend
...
Fixes #649
2021-07-29 17:49:42 +09:00
wiz
59898f1269
Patch sysconf dep for blockstream/electrs build in start scripts
2021-07-25 15:20:35 +09:00
wiz
f2f5749769
Update nginx configuration for cache settings and new locales
...
* Consolidates add_header statements into single top-level section
* Updates locales to match frontend/src/app/app.constants.ts
* Re-orders locales to match locale selector for easier checking
2021-07-19 18:36:13 +09:00
wiz
74c49b9ae7
Enable i18n locale for Russian (ru)
2021-06-13 15:05:21 -05:00
wiz
c09eb651ef
Add production/nginx-bisq.conf for bisq.markets usage
2021-05-11 14:18:25 +09:00
wiz
f281e84396
Disable caching of electrs endpoints in production/nginx.conf
2021-05-06 21:20:13 +09:00
wiz
0d03a9e6cc
Send HTTP header Vary: Cookie to prevent localization cache bug
...
Fixes #477
2021-04-27 19:00:33 +09:00
softsimon
3a957ece05
Merge branch 'master' into simon/bisq-dashboard
...
# Conflicts:
# frontend/src/locale/messages.xlf
2021-04-26 01:41:07 +04:00
wiz
6dbfcc9d1a
Enable i18n for Polish language
2021-04-26 05:43:47 +09:00
softsimon
5878a2e631
Unified Bisq config
2021-04-25 02:38:46 +04:00
wiz
d51ea54ab9
Add production FreeBSD tuning parameters to increase network buffers
2021-04-16 00:12:29 +09:00
wiz
3300f0e8d3
Set production backend config "CLEAR_PROTECTION_MINUTES": 5
2021-04-15 21:44:38 +09:00
wiz
d5cc558670
Modify nginx.conf to cache HTML for 10m and static resources for 1h
...
Fixes #61
2021-03-08 18:50:57 +09:00
wiz
a52f98c39d
Proxy /api/v1/contributors from mempool.space, also fix HTTP headers
...
Fixes #366
2021-03-08 18:34:04 +09:00
wiz
892cebd8f4
Enable sending CORS headers from electrs backend in startup script
...
Fixes #367
2021-03-03 21:29:18 +09:00
softsimon
a3d9e87f0e
Adding Hebrew language
2021-02-25 17:16:22 +07:00
wiz
6a7d5fbe6a
Don't start production instances if backend folder doesn't exist
2021-02-25 02:38:38 +09:00
wiz
619eee9492
Improve production high availability using structured failover and cache
2021-02-23 13:33:52 +09:00
wiz
c9f2bd4029
Update nginx and mempool backend configuration for active failover HA
2021-02-22 20:22:38 +09:00
wiz
0b79aaaf2f
Don't use rust from rustup, use OS package rust instead
2021-02-21 03:44:54 +09:00
wiz
7d858a8abd
Modify production startup scripts to support signet
2021-02-21 03:44:33 +09:00
wiz
32af9420dc
Update production frontend/backend config to support signet
2021-02-21 03:41:52 +09:00
wiz
7195d6ea31
Update nginx.conf for signet, services, and disable SSR for now
2021-02-21 03:39:19 +09:00
softsimon
edce0d118a
Updating mempool logo and adding new mempool space logo. New frontend config OFFICIAL_MEMPOOL_SPACE to enable the latter.
...
fixes #336
2021-02-18 13:34:05 +07:00
wiz
befb192651
Reduce backend heap size setting to 2G since cache memory usage was optimized ( #345 )
...
On powerful servers, nodejs automatically sets the limit at 4GB
```
% node -e 'console.log(`node heap limit = ${require("v8").getHeapStatistics().heap_size_limit / (1024 * 1024)} Mb`)'
node heap limit = 4144 Mb
```
On a Raspberry Pi with 8GB RAM, nodejs automatically sets the limit at 1GB
```
% node -e 'console.log(`node heap limit = ${require("v8").getHeapStatistics().heap_size_limit / (1024 * 1024)} Mb`)'
node heap limit = 1048 Mb
```
On a Raspberry Pi with 4GB RAM, nodejs automatically sets the limit at 740MB
```
% node -e 'console.log(`node heap limit = ${require("v8").getHeapStatistics().heap_size_limit / (1024 * 1024)} Mb`)'
node heap limit = 739.4694900512695 Mb
```
After testing with manually setting the limit to 768MB, mempool starts
up fine, but crashes when saving the cache when the mempool is quite
large (over 400MB with custom bitcoin.conf setting).
So it's probably safe to reduce the 4GB limit setting to 2GB for
all devices and and just use the automatically set values, now that the
backend's disk cache memory usage was recently optimized.
However, a new npm script for `npm run start-production` will be added
so we can keep our production mempool.space servers running with a very
large bitcoin.conf mempool
2021-02-14 22:25:29 +07:00
wiz
378a56b2c7
Set production electrs scripts to store db in /electrs
2021-02-04 15:53:08 +09:00
wiz
8e42d573ee
Modify production electrs scripts to use relative paths from homedir
2021-02-04 12:17:28 +09:00
wiz
d3646aa45e
Fix production nginx.conf and backend config to always use unique ports
2021-01-31 01:16:32 +09:00
wiz
6a9c4d82ec
Rename production syslog notifications channel
2021-01-30 23:40:46 +09:00
wiz
42ad068dd2
Configure production backends and nginx for high availability electrs
2021-01-30 23:01:01 +09:00
softsimon
9d317082e1
Replacing localhost with 127.0.0.1
2021-01-30 18:43:58 +07:00
wiz
edf8f1fc8a
Update production upgrade script notification command
2021-01-30 20:31:47 +09:00
wiz
ad52e7fe7e
Update production syslog scripts
2021-01-30 20:09:47 +09:00
softsimon
47dd1f2d0b
Adding Italian language. Updating nginx conf with some missing languages.
2021-01-27 20:24:32 +07:00
softsimon
6507b5e003
Adding hungarian language.
2021-01-24 04:19:50 +07:00
wiz
0336c6256a
Don't create empty cache.json on startup anymore
2021-01-18 12:20:55 +09:00
wiz
a05af48059
Add missing production/mempool-frontend-config.json
2021-01-11 23:14:08 +09:00
wiz
3e2a49c08e
Update production/mempool-config.*.json files for new backend config
2021-01-11 17:42:35 +09:00
wiz
b261243f85
Rewrite server.ts to fix i18n and implement proper HTTP 404 responses
2020-12-23 13:26:11 +09:00
wiz
6491d4576a
Fixes after merging master into AU branch, add nginx.conf for SSR
2020-12-22 11:31:49 +09:00
wiz
0d50bbdc0a
Adjust build scripts for new AU frontend build output in /browser/
2020-12-22 07:09:45 +09:00
wiz
a2740aaa02
Enable 'ka' locale for Georgian
2020-12-07 00:20:05 +09:00
wiz
73db9c5023
Enable 'ar' locale for Arabic
2020-12-04 04:11:14 +09:00
wiz
129f122993
Replace nginx.conf try_files for /$lang/index.html with rewrite ( fixes #250 )
2020-12-03 18:52:03 +09:00
wiz
83501cfdbe
Enable locale 'vi' for Vietnamese
2020-12-03 10:16:02 +09:00
wiz
2b2bc2fc41
Change nginx.conf Tor HS port from 81 to 80 to fix i18n bug
2020-12-03 09:56:29 +09:00
wiz
6b498b9601
Exempt localhost from nginx rate limits for Tor and AU usage
2020-12-03 09:47:39 +09:00
wiz
d3cb1d607b
Update list of supported locales
2020-12-02 21:33:53 +09:00
wiz
352afbc029
Add one more fix to nginx.conf for i18n
2020-12-02 21:21:44 +09:00
wiz
4658b47007
Implement i18n support in frontend using Angular + Transifex + NGINX
...
This PR adds basic i18n support into the mempool frontend, together with
a smooth workflow for developers and translators to collaborate:
* Using the existing @angular/localize module, developers add i18n
metadata to any frontend strings their new features or changes modify
* Using the new npm script `i18n-extract-from-source`, developers
extract the i18n data from source code into `src/locale/messages.xlf`
* After pushing the updated `src/locale/messages.xlf` to GitHub, the
Transifex service will update its database from the new source data
* Using the Transifex website UI, translators can work together to
translate all the mempool frontend strings into their native languages
* Using the new npm script `i18n-pull-from-transifex`, developers can
pull in completed translations from Transifex, and commit them into git.
This flow requires an API key from Transifex, which can be obtained at
https://www.transifex.com/user/settings/api/ to be used with the python
script installed by `pip install transifex-client` - after preparing
these, run the npm script which will ask you for the API key the first
time. When downloading is complete, you can test building the frontend,
and if successful, commit the new strings files into git.
This PR implements a new locale selector in the footer of the homepage
dashboard, and includes WIP translations for the following languages:
* Czech (cs)
* German (de)
* Japanese (ja)
* Norwegian (nn)
* Spanish (es)
* Swedish (sv)
* Ukrainian (uk)
* Persian (fa)
* Portugese (pt)
* Turkish (tr)
* Dutch (nl)
* French (fr)
* Chinese (zh)
* Slovenian (sl)
* Korean (ko)
* Polish (pl)
The user-agent's `Accept-Language` header is used to automatically
detect their preferred language, which can be manually overriden by the
pull-down selector, which saves their preference to a cookie, which is
used by nginx to serve the correct HTML bundle to the user.
Remaining tasks include adding i18n metadata for strings in the Bisq and
Liquid frontend code, mouseover hover tooltip strings, hard-coded og
metadata inside HTML templates, and many other places. This will be done
in a separate PR.
When upgrading to add i18n support, mempool instance operators must take
care to install the new nginx.conf and nginx-mempool.conf files, and
tweak for their specific site configuration.
Fixes #81
2020-12-02 04:19:33 +09:00
wiz
827c5d12a3
Modify upgrade script to append repo before tag name
2020-11-23 09:46:50 +09:00
wiz
ab6ed227e3
Modify upgrade script to include "tag @ hash" in notification msg
2020-11-16 23:44:32 +09:00
wiz
ffb08e5e01
Fix nginx.conf reverse proxy cache URL path for sponsor images
2020-11-16 00:43:10 +09:00
wiz
b89a549a75
Enable nginx reverse proxy cache for sponsor profile images + misc tweaks
2020-11-06 14:09:04 +09:00
wiz
75ce300332
Don't call npm install
with --only=prod
2020-10-26 04:24:05 +09:00
wiz
32095cd6b3
Don't rate limit /api/v1/donations URL prefix for sponsor photos
2020-10-19 20:56:46 +09:00
wiz
d8521a9e21
Update production backend configuration files for all 4 instances
2020-10-19 20:40:56 +09:00
wiz
4c82e292be
Fix typo in previous commit
2020-10-19 19:49:02 +09:00
wiz
eb00b92996
Modify upgrade script to allow reverting to a specific git hash or tag
2020-10-19 19:43:30 +09:00
wiz
2c3f425797
Route /api and /<network/api URLs to HTML for API documentation
2020-10-18 13:11:02 +09:00
wiz
3fd5277912
Update mempool-logger and syslog.conf to separate info and notice msgs
2020-10-13 19:58:11 +09:00
wiz
056fe5712d
Add newsyslog.conf to rotate mempool logfiles regularly
2020-10-13 19:56:10 +09:00
wiz
cbcfbe5b36
Add mempool-logger script and syslog.conf configuration to log to it
2020-10-13 19:16:09 +09:00
wiz
c48a151e21
Tweak upgrade script to take PR branch name as argument
2020-10-08 01:35:54 +09:00
wiz
e9d3b44e97
Set "LIQUID":true in production liquid backend config
2020-09-28 05:00:21 +09:00
wiz
aa3559e634
Add production script to update local copy of assets registry JSON
2020-09-24 18:42:13 +09:00
wiz
3aff874479
Update production nginx.conf and mempool-config.json for Bisq Markets API
2020-09-23 19:39:46 +09:00
wiz
fa75c1b08d
Move backend restart command from upgrade command into its own command
2020-09-23 19:05:28 +09:00
wiz
8146939f0f
Remove unnecessary options from production README's bitcoin.conf
2020-09-20 05:45:29 +09:00
wiz
630e3fa863
Update production scripts to only install production npm deps
2020-09-19 02:19:47 +09:00
wiz
55852bcf62
Update production bisq instance backend config for Bisq Markets data
2020-09-18 22:02:23 +09:00
wiz
91815072d5
Update production scripts to install/load NodeJS/npm using nvm
2020-09-18 21:53:58 +09:00
wiz
07cfdd73aa
Fix upgrade script not restarting node due to new command line args
2020-09-18 18:08:59 +09:00
wiz
c1c0521ab4
Merge pull request #107 from mempool/bisq-markets
...
Bisq markets API
2020-09-15 05:28:28 +09:00
softsimon
a11135f358
* /volumes API
...
* /ticker API
2020-09-15 03:11:52 +07:00
wiz
9234d23da2
Update production nginx.conf with performance tuning and rate limiting
2020-09-10 14:39:04 +09:00
wiz
d7a5ecc4aa
Add bisq websocket proxy in production nginx.conf
2020-07-26 00:03:30 +09:00
wiz
7f7c6ef6f8
Minor tweaks to production, use git pull --rebase, only build 1 frontend
2020-07-25 01:46:51 +09:00
wiz
6ded0f54c4
Add production 4th instance for bisq backend
2020-07-24 21:53:57 +09:00
wiz
067540980e
Add filesystem notes to production README doc
2020-07-24 21:53:55 +09:00
wiz
4e6ba18f19
Add proxy_pass with rewrite for /bisq/api into nginx.conf
2020-07-18 21:07:36 +09:00
wiz
4aca806b70
Rename API endpoints in frontend and nginx.conf to match blockstream
2020-07-06 00:15:16 +09:00
wiz
50ccdc424d
Add HTTP Link: header for canonical URL reference to mempool.space
2020-07-05 16:34:26 +09:00
wiz
926842d949
Fix HTTP content-security-policy header typo
2020-07-04 18:00:41 +09:00