Skip to content

Commit e1c83ba

Browse files
committed
fix: more dono variables
+ base64 encode to add an extra step - please don't change our donation variables and keep donos to our official instance </3
1 parent 916e673 commit e1c83ba

4 files changed

Lines changed: 8 additions & 6 deletions

File tree

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ PUB_DISABLE_FAILURE_BLOCKS=false
2323
# Stripe donation settings
2424
# Please keep these values the same, they support VERT's development!
2525
PUB_DONATION_URL=https://donations.vert.sh
26-
PUB_STRIPE_KEY=pk_live_51RDVmAGSxPVad6bQwzVNnbc28nlmzA30krLWk1fefCMpUPiSRPkavMMbGqa8A3lUaOCMlsUEVy2CWDYg0ip3aPpL00ZJlsMkf2
26+
PUB_STRIPE_KEY=pk_live_51TlrPaFTPjkhEGBSu5Kwy5jJQYxcX5yUUHXiH5g7Xzvb0NKzDqbooc126HjlW35uUkfAgQN2ruEoCuyQynoxpKaA00ojFgQ116

.github/workflows/docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ jobs:
6969
PUB_VERTD_URL=https://vertd.vert.sh
7070
PUB_DISABLE_ALL_EXTERNAL_REQUESTS=false
7171
PUB_DONATION_URL=https://donations.vert.sh
72-
PUB_STRIPE_KEY=pk_live_51RDVmAGSxPVad6bQwzVNnbc28nlmzA30krLWk1fefCMpUPiSRPkavMMbGqa8A3lUaOCMlsUEVy2CWDYg0ip3aPpL00ZJlsMkf2
72+
PUB_STRIPE_KEY=pk_live_51TlrPaFTPjkhEGBSu5Kwy5jJQYxcX5yUUHXiH5g7Xzvb0NKzDqbooc126HjlW35uUkfAgQN2ruEoCuyQynoxpKaA00ojFgQ116

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ services:
1111
PUB_DISABLE_ALL_EXTERNAL_REQUESTS: ${PUB_DISABLE_ALL_EXTERNAL_REQUESTS:-false}
1212
PUB_VERTD_URL: ${PUB_VERTD_URL:-}
1313
PUB_DONATION_URL: ${PUB_DONATION_URL:-https://donations.vert.sh}
14-
PUB_STRIPE_KEY: ${PUB_STRIPE_KEY:-pk_live_51RDVmAGSxPVad6bQwzVNnbc28nlmzA30krLWk1fefCMpUPiSRPkavMMbGqa8A3lUaOCMlsUEVy2CWDYg0ip3aPpL00ZJlsMkf2}
14+
PUB_STRIPE_KEY: ${PUB_STRIPE_KEY:-pk_live_51TlrPaFTPjkhEGBSu5Kwy5jJQYxcX5yUUHXiH5g7Xzvb0NKzDqbooc126HjlW35uUkfAgQN2ruEoCuyQynoxpKaA00ojFgQ116}
1515
restart: unless-stopped
1616
ports:
1717
- ${PORT:-3000}:80

src/lib/sections/about/Donate.svelte

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@
1010
import { goto } from "$app/navigation";
1111
import { page } from "$app/state";
1212
import { PUB_DONATION_URL, PUB_STRIPE_KEY } from "$env/static/public";
13-
const OFFICIAL_DONATION_URL = "https://donations.vert.sh";
14-
const OFFICIAL_STRIPE_KEY =
15-
"pk_live_51RDVmAGSxPVad6bQwzVNnbc28nlmzA30krLWk1fefCMpUPiSRPkavMMbGqa8A3lUaOCMlsUEVy2CWDYg0ip3aPpL00ZJlsMkf2";
13+
// please do not change these!
14+
const OFFICIAL_DONATION_URL = atob("aHR0cHM6Ly9kb25hdGlvbnMudmVydC5zaA==");
15+
const OFFICIAL_STRIPE_KEY = atob(
16+
"cGtfbGl2ZV81MVRsclBhRlRQamtoRUdCU3U1S3d5NWpKUVl4Y1g1eVVVSFhpSDVnN1h6dmIwTkt6RHFib29jMTI2SGpsVzM1dVVrZkFnUU4ycnVFb0N1eVF5bm94cEthQTAwb2pGZ1ExMTY=",
17+
);
1618
const isOfficial =
1719
PUB_DONATION_URL === OFFICIAL_DONATION_URL &&
1820
PUB_STRIPE_KEY === OFFICIAL_STRIPE_KEY;

0 commit comments

Comments
 (0)