fix
This commit is contained in:
21
install.zsh
21
install.zsh
@@ -156,6 +156,16 @@ function at-repos-social-app-agent-patch() {
|
|||||||
popd
|
popd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function at-repos-social-app-disable-external-services-patch() {
|
||||||
|
f=$d/repos/social-app/src/state/geolocation/const.ts
|
||||||
|
p_=$d/patching/8980-social-app-disable-external-services.diff
|
||||||
|
d_=$d/repos/social-app
|
||||||
|
echo "applying patch: under ${f} for ${p_}"
|
||||||
|
pushd ${d_}
|
||||||
|
patch -p1 < ${p_}
|
||||||
|
popd
|
||||||
|
}
|
||||||
|
|
||||||
function at-repos-ozone-patch() {
|
function at-repos-ozone-patch() {
|
||||||
#DOMAIN=syu.is
|
#DOMAIN=syu.is
|
||||||
cd $d/repos
|
cd $d/repos
|
||||||
@@ -246,7 +256,8 @@ case "`cat /etc/hostname`" in
|
|||||||
at-repos-social-app-icon-origin
|
at-repos-social-app-icon-origin
|
||||||
at-repos-social-app-avatar-write
|
at-repos-social-app-avatar-write
|
||||||
at-repos-social-app-agent-patch
|
at-repos-social-app-agent-patch
|
||||||
if [ -n "$1" ] && [ "$1" = "s" ];then
|
at-repos-social-app-disable-external-services-patch
|
||||||
|
if [ -n "$1" ] && [ "$1" = "social-app-custom" ];then
|
||||||
at-social-app-custom-pages
|
at-social-app-custom-pages
|
||||||
at-social-app-custom-screens
|
at-social-app-custom-screens
|
||||||
at-social-app-aiat-config
|
at-social-app-aiat-config
|
||||||
@@ -257,8 +268,12 @@ case "`cat /etc/hostname`" in
|
|||||||
at-repos-atproto-service-bsky-api-patch
|
at-repos-atproto-service-bsky-api-patch
|
||||||
at-repos-atproto-service-pds-index-patch
|
at-repos-atproto-service-pds-index-patch
|
||||||
at-repos-ozone-patch
|
at-repos-ozone-patch
|
||||||
at-repos-build-docker-atproto
|
|
||||||
at-repos-build-docker-social
|
at-repos-build-docker-social
|
||||||
|
if [ -n "$1" ] && [ "$1" = "s" ];then
|
||||||
|
at-repos-push-docker
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
at-repos-build-docker-atproto
|
||||||
at-repos-push-docker
|
at-repos-push-docker
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
@@ -336,3 +351,5 @@ function at-social-app-custom-screens() {
|
|||||||
|
|
||||||
echo "custom screens applied"
|
echo "custom screens applied"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
17
patching/8980-social-app-disable-external-services.diff
Normal file
17
patching/8980-social-app-disable-external-services.diff
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
--- a/src/state/geolocation/const.ts
|
||||||
|
+++ b/src/state/geolocation/const.ts
|
||||||
|
@@ -3,9 +3,10 @@ import {BAPP_CONFIG_DEV_URL, IS_DEV} from '#/env'
|
||||||
|
import {type Device} from '#/storage'
|
||||||
|
|
||||||
|
export const IPCC_URL = `https://bsky.app/ipcc`
|
||||||
|
-export const BAPP_CONFIG_URL_PROD = `https://ip.bsky.app/config`
|
||||||
|
-export const BAPP_CONFIG_URL = IS_DEV
|
||||||
|
- ? (BAPP_CONFIG_DEV_URL ?? BAPP_CONFIG_URL_PROD)
|
||||||
|
- : BAPP_CONFIG_URL_PROD
|
||||||
|
+// Disabled for self-hosted environment to avoid CORS errors
|
||||||
|
+// export const BAPP_CONFIG_URL_PROD = `https://ip.bsky.app/config`
|
||||||
|
+// export const BAPP_CONFIG_URL = IS_DEV
|
||||||
|
+// ? (BAPP_CONFIG_DEV_URL ?? BAPP_CONFIG_URL_PROD)
|
||||||
|
+// : BAPP_CONFIG_URL_PROD
|
||||||
|
+export const BAPP_CONFIG_URL = null
|
||||||
|
export const GEOLOCATION_CONFIG_URL = BAPP_CONFIG_URL
|
||||||
Reference in New Issue
Block a user