Skip to content

Commit 8bd5b72

Browse files
committed
fixes for dockerised runtime
1 parent 6cf4cdd commit 8bd5b72

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

config.template.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ maintenance = false
99
dsn = "postgres://mystbin:mystbin@database:5432/mystbin"
1010

1111
[REDIS]
12-
limiter = "redis://redis:6739/0" # Optional
13-
sessions = "redis://redis:6739/1" # Optional
12+
limiter = "redis://redis:6379/0" # Optional
13+
sessions = "redis://redis:6379/1" # Optional
1414

1515
[LIMITS]
1616
paste_get = { rate = 30, per = 60, priority = 1, bucket = "ip" }

migration.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ALTER TABLE pastes DROP COLUMN IF EXISTS last_edited CASCADE; -- no longer allow
66
ALTER TABLE pastes ALTER COLUMN password SET DEFAULT NULL; -- nullable password by default
77
ALTER TABLE pastes DROP COLUMN IF EXISTS origin_ip CASCADE; -- no longer needed
88
ALTER TABLE pastes ADD COLUMN IF NOT EXISTS safety TEXT UNIQUE; -- this is how we handle paste deletion.
9-
UPDATE pastes SET safety = SELECT gen_random_uuid(); -- Populate with junk data.
9+
UPDATE pastes SET safety = gen_random_uuid(); -- Populate with junk data.
1010
ALTER TABLE pastes ALTER COLUMN safety SET NOT NULL; -- add not null constraint
1111
CREATE UNIQUE INDEX IF NOT EXISTS pastes_safety_idx ON pastes (safety); -- -- Index by safety keys for faster lookup to delete.
1212

redis.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
port 6379
2-
requirepass ChangeMeHere!!

0 commit comments

Comments
 (0)