114 Commits

Author SHA1 Message Date
wiz
e189eccd1c Update newsyslog-mempool-nginx.conf for all nginx log paths 2021-11-18 15:28:44 +09:00
wiz
53820f62cb Enable i18n locale Thai (th) 2021-11-17 21:03:35 +09:00
wiz
831d88df7e Enable address autocomplete for all networks 2021-11-10 07:56:07 +01:00
wiz
e266a3a24d 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
b6052563c3 Merge pull request #792 from mempool/i18n/add-macedonian
Add new locale: Macedonian (mk)
2021-09-17 13:54:03 +04:00
wiz
d63e4f878a Add new locale: Macedonian (mk) 2021-09-17 15:03:52 +09:00
wiz
0e508e6b0f Add new locale: Romanian (ro) 2021-09-17 15:02:15 +09:00
wiz
be7030ec91 Add newsyslog.conf for nginx log rotation - delete logs after 90 days 2021-09-11 08:40:58 +09:00
wiz
075cfe3d61 Update syslog.conf and upgrade/restart scripts for new keybase channels 2021-09-02 19:30:54 +09:00
wiz
3169d014a3 Fix missing fetch command in upgrade script 2021-08-21 21:56:42 +09:00
wiz
fdac1dd6de Fix typo/bug in mempool-logger script 2021-08-21 15:39:15 +09:00
wiz
7c0ef12920 Tweak production syslog configuration 2021-08-21 15:19:29 +09:00
wiz
9afe2d45c9 Modify restart script to log restart events, don't restart services 2021-08-21 15:06:50 +09:00
wiz
24dcdcaa48 Modify upgrade script for PR branch deployment, tweak logging 2021-08-21 14:51:19 +09:00
wiz
cce9ea8d8f Send deployment notifications to mempool.dev keybase group 2021-08-20 21:52:54 +09:00
wiz
38a600fed2 Rewrite production upgrade script to handle all 3 sites 2021-08-14 06:03:30 +09:00
wiz
dfd0fc2e25 Update production nginx-mempool.conf for donations API endpoint 2021-08-11 01:00:17 +09:00
wiz
35d4abcc25 Add missing --db-dir option in electrs-start-liquid script 2021-08-08 05:18:11 +09:00
wiz
7082eea4be Enable 'ca' locale for Catalan 2021-08-08 01:05:42 +09:00
wiz
8937e00990 Add missing asset_registry_db repo path for liquid electrs backend
Fixes #649
2021-07-29 17:49:42 +09:00
wiz
29c6483fe9 Patch sysconf dep for blockstream/electrs build in start scripts 2021-07-25 15:20:35 +09:00
wiz
2799ebaf90 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
1818d16ead Enable i18n locale for Russian (ru) 2021-06-13 15:05:21 -05:00
wiz
9592c975df Add production/nginx-bisq.conf for bisq.markets usage 2021-05-11 14:18:25 +09:00
wiz
4518d1ead3 Disable caching of electrs endpoints in production/nginx.conf 2021-05-06 21:20:13 +09:00
wiz
2d19d21532 Send HTTP header Vary: Cookie to prevent localization cache bug
Fixes #477
2021-04-27 19:00:33 +09:00
softsimon
d253fcc8bf Merge branch 'master' into simon/bisq-dashboard
# Conflicts:
#	frontend/src/locale/messages.xlf
2021-04-26 01:41:07 +04:00
wiz
109c652dd0 Enable i18n for Polish language 2021-04-26 05:43:47 +09:00
softsimon
492a77b126 Unified Bisq config 2021-04-25 02:38:46 +04:00
wiz
8399f50e4e Add production FreeBSD tuning parameters to increase network buffers 2021-04-16 00:12:29 +09:00
wiz
ff5bfc438c Set production backend config "CLEAR_PROTECTION_MINUTES": 5 2021-04-15 21:44:38 +09:00
wiz
8f5f10fb2b Modify nginx.conf to cache HTML for 10m and static resources for 1h
Fixes #61
2021-03-08 18:50:57 +09:00
wiz
6fa12ec753 Proxy /api/v1/contributors from mempool.space, also fix HTTP headers
Fixes #366
2021-03-08 18:34:04 +09:00
wiz
313bbf0288 Enable sending CORS headers from electrs backend in startup script
Fixes #367
2021-03-03 21:29:18 +09:00
softsimon
7c74440c00 Adding Hebrew language 2021-02-25 17:16:22 +07:00
wiz
3152ac22f7 Don't start production instances if backend folder doesn't exist 2021-02-25 02:38:38 +09:00
wiz
99eedf106f Improve production high availability using structured failover and cache 2021-02-23 13:33:52 +09:00
wiz
9c1cd1cf4d Update nginx and mempool backend configuration for active failover HA 2021-02-22 20:22:38 +09:00
wiz
1cf675217f Don't use rust from rustup, use OS package rust instead 2021-02-21 03:44:54 +09:00
wiz
79879bffe5 Modify production startup scripts to support signet 2021-02-21 03:44:33 +09:00
wiz
2820cdb69e Update production frontend/backend config to support signet 2021-02-21 03:41:52 +09:00
wiz
f9d71aca39 Update nginx.conf for signet, services, and disable SSR for now 2021-02-21 03:39:19 +09:00
softsimon
8dc4cba01d 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
0a0edc0315 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
f42b52d37b Set production electrs scripts to store db in /electrs 2021-02-04 15:53:08 +09:00
wiz
45092f580f Modify production electrs scripts to use relative paths from homedir 2021-02-04 12:17:28 +09:00
wiz
da2f9aa80d Fix production nginx.conf and backend config to always use unique ports 2021-01-31 01:16:32 +09:00
wiz
882ca34fcc Rename production syslog notifications channel 2021-01-30 23:40:46 +09:00
wiz
c13d128d9c Configure production backends and nginx for high availability electrs 2021-01-30 23:01:01 +09:00
softsimon
42fa7c67bb Replacing localhost with 127.0.0.1 2021-01-30 18:43:58 +07:00