ai/at
1
0
This commit is contained in:
2025-06-28 07:51:17 +09:00
parent bd84914e1c
commit 3fc3c1f941
3 changed files with 56 additions and 26 deletions

View File

@@ -97,17 +97,40 @@ services:
redis: redis:
condition: service_healthy condition: service_healthy
jetstream: ozone:
build:
context: ./repos/jetstream/
dockerfile: Dockerfile
ports: ports:
- 6008:6008 - 2585:3000
volumes: build:
- ./data/jetstream:/data context: ./repos/atproto/
dockerfile: services/ozone/Dockerfile
restart: always restart: always
command: node --enable-source-maps api.js
volumes:
- ./data/ozone/:/data/
- ./repos/ozone.js:/app/services/ozone/api.js:ro
env_file: 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: ozone-web:
build: build:
@@ -123,26 +146,21 @@ services:
database: database:
condition: service_healthy condition: service_healthy
ozone: jetstream:
build: build:
context: ./repos/atproto/ context: ./repos/jetstream/
dockerfile: services/ozone/Dockerfile dockerfile: Dockerfile
ports: ports:
- 2585:3000 - 6008:6008
restart: always
command: node --enable-source-maps api.js
volumes: volumes:
- ./data/ozone/:/data/ - ./data/jetstream:/data
restart: always
env_file: env_file:
- ./envs/ozone - ./envs/jetstream
ozone-daemon: ipcc:
build: image: nginx:alpine
context: ./repos/atproto/
dockerfile: services/ozone/Dockerfile
restart: always
command: node --enable-source-maps daemon.js
volumes: volumes:
- ./data/ozone/:/data/ - ./configs/nginx/ipcc.conf:/etc/nginx/conf.d/default.conf
env_file: ports:
- ./envs/ozone - 8099:80

9
configs/nginx/ipcc.conf Normal file
View 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"}';
}
}

View File

@@ -115,7 +115,10 @@ function at-repos-social-app-write() {
done done
f=$dt/lib/strings/url-helpers.ts 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 ## cloudflare worker -> /ipcc
#f=$dt/state/geolocation.tsx #f=$dt/state/geolocation.tsx