Merge branch 'master' of https://github.com/pandorabox-io/pandorabox.io
commit
2e0625bb6f
|
@ -1,23 +0,0 @@
|
|||
{
|
||||
"layers": [{
|
||||
"id": 0,
|
||||
"name": "Earth",
|
||||
"from": -16,
|
||||
"to": 160
|
||||
},{
|
||||
"id": 1,
|
||||
"name": "Moon",
|
||||
"from": 5000,
|
||||
"to": 5500
|
||||
},{
|
||||
"id": 2,
|
||||
"name": "Space",
|
||||
"from": 6000,
|
||||
"to": 10000
|
||||
},{
|
||||
"id": 3,
|
||||
"name": "Mars",
|
||||
"from": 15850,
|
||||
"to": 17000
|
||||
}]
|
||||
}
|
|
@ -1,18 +0,0 @@
|
|||
minetest.db.url=jdbc:postgresql://postgres:5432/postgres
|
||||
|
||||
tile.db.url=jdbc:postgresql://postgres-tiles:5432/postgres
|
||||
tile.cache.impl=DATABASE
|
||||
|
||||
#tracker.matomo.id=1
|
||||
#tracker.matomo.url=https://analytics.rudin.io/piwik.js
|
||||
|
||||
#tilerenderer.initialrendering.enable=true
|
||||
|
||||
#log.tile.updatetimings=true
|
||||
tilerenderer.updateinterval=5
|
||||
#log.query.performance=true
|
||||
|
||||
tilerenderer.maxupdateblocks=1000
|
||||
tile.rendering.strategy=ASAP
|
||||
|
||||
prometheus.enable=true
|
|
@ -12,7 +12,7 @@ services:
|
|||
- "postgres"
|
||||
volumes:
|
||||
- "./data/minetest:/data"
|
||||
- "./data/minetest/debug.txt:/usr/local/debug.txt"
|
||||
- "./data/minetest/debug.txt:/root/.minetest/debug.txt"
|
||||
working_dir: /data
|
||||
command: minetestserver --config /data/minetest.conf --world /data/world/ --quiet
|
||||
logging:
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
docker-compose exec postgres psql -U postgres -c "select player, inv_id, length(item) as size from player_inventory_items where player in (select name from player order by modification_date desc limit 20) order by size desc limit 30"
|
|
@ -1,18 +0,0 @@
|
|||
alter table blocks add column changecount bigint not null default 0;
|
||||
|
||||
create index CONCURRENTLY blocks_changecount_index on blocks(changecount);
|
||||
|
||||
create or replace function on_blocks_change_count() returns trigger as
|
||||
$BODY$
|
||||
BEGIN
|
||||
NEW.changecount = OLD.changecount + 1;
|
||||
return NEW;
|
||||
END;
|
||||
$BODY$
|
||||
LANGUAGE plpgsql;
|
||||
|
||||
create trigger blocks_update_changecount
|
||||
before update
|
||||
on blocks
|
||||
for each row
|
||||
execute procedure on_blocks_change_count();
|
|
@ -1,2 +0,0 @@
|
|||
#!/bin/sh
|
||||
cat changecount_column.sql | sudo docker-compose exec postgres psql -U postgres
|
Loading…
Reference in New Issue