add ipcc
This commit is contained in:
68
compose.yml
68
compose.yml
@@ -97,17 +97,40 @@ services:
|
||||
redis:
|
||||
condition: service_healthy
|
||||
|
||||
jetstream:
|
||||
build:
|
||||
context: ./repos/jetstream/
|
||||
dockerfile: Dockerfile
|
||||
ozone:
|
||||
ports:
|
||||
- 6008:6008
|
||||
volumes:
|
||||
- ./data/jetstream:/data
|
||||
- 2585:3000
|
||||
build:
|
||||
context: ./repos/atproto/
|
||||
dockerfile: services/ozone/Dockerfile
|
||||
restart: always
|
||||
command: node --enable-source-maps api.js
|
||||
volumes:
|
||||
- ./data/ozone/:/data/
|
||||
- ./repos/ozone.js:/app/services/ozone/api.js:ro
|
||||
env_file:
|
||||
- ./envs/jetstream
|
||||
- ./envs/ozone
|
||||
healthcheck:
|
||||
test: "wget -q --spider http://localhost:3000/xrpc/_health"
|
||||
interval: 5s
|
||||
retries: 20
|
||||
depends_on:
|
||||
database:
|
||||
condition: service_healthy
|
||||
|
||||
ozone-daemon:
|
||||
build:
|
||||
context: ./repos/atproto/
|
||||
dockerfile: services/ozone/Dockerfile
|
||||
restart: always
|
||||
command: node --enable-source-maps daemon.js
|
||||
env_file:
|
||||
- ./envs/ozone
|
||||
depends_on:
|
||||
ozone:
|
||||
condition: service_healthy
|
||||
database:
|
||||
condition: service_healthy
|
||||
|
||||
ozone-web:
|
||||
build:
|
||||
@@ -123,26 +146,21 @@ services:
|
||||
database:
|
||||
condition: service_healthy
|
||||
|
||||
ozone:
|
||||
jetstream:
|
||||
build:
|
||||
context: ./repos/atproto/
|
||||
dockerfile: services/ozone/Dockerfile
|
||||
context: ./repos/jetstream/
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- 2585:3000
|
||||
restart: always
|
||||
command: node --enable-source-maps api.js
|
||||
- 6008:6008
|
||||
volumes:
|
||||
- ./data/ozone/:/data/
|
||||
- ./data/jetstream:/data
|
||||
restart: always
|
||||
env_file:
|
||||
- ./envs/ozone
|
||||
- ./envs/jetstream
|
||||
|
||||
ozone-daemon:
|
||||
build:
|
||||
context: ./repos/atproto/
|
||||
dockerfile: services/ozone/Dockerfile
|
||||
restart: always
|
||||
command: node --enable-source-maps daemon.js
|
||||
ipcc:
|
||||
image: nginx:alpine
|
||||
volumes:
|
||||
- ./data/ozone/:/data/
|
||||
env_file:
|
||||
- ./envs/ozone
|
||||
- ./configs/nginx/ipcc.conf:/etc/nginx/conf.d/default.conf
|
||||
ports:
|
||||
- 8099:80
|
||||
|
9
configs/nginx/ipcc.conf
Normal file
9
configs/nginx/ipcc.conf
Normal file
@@ -0,0 +1,9 @@
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
location / {
|
||||
add_header Content-Type application/json;
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
return 200 '{"countryCode":"JP"}';
|
||||
}
|
||||
}
|
@@ -115,7 +115,10 @@ function at-repos-social-app-write() {
|
||||
done
|
||||
|
||||
f=$dt/lib/strings/url-helpers.ts
|
||||
sed -i 's#`https://go\.syu\.is/redirect\?u=\${encodeURIComponent(url)}`#url#g' $f
|
||||
sed -i 's#https://go.bsky.app/redirect?u=${encodeURIComponent(url)}#url#g' $f
|
||||
|
||||
f=$dt/lib/statsig/statsig.tsx
|
||||
sed -i "s#api: 'https://events.bsky.app/v2'#api: 'https://syu.is/ipcc'#g" $f
|
||||
|
||||
## cloudflare worker -> /ipcc
|
||||
#f=$dt/state/geolocation.tsx
|
||||
|
Reference in New Issue
Block a user