This commit is contained in:
Geng Tan 2022-05-25 09:40:37 -04:00
Родитель f1213d3e8b
Коммит 810d84fc4d
1 изменённых файлов: 10 добавлений и 5 удалений

Просмотреть файл

@ -1,8 +1,14 @@
# TODO: need a better one
healthcheck(){
while true; do (echo -e 'HTTP/1.1 200 OK\r\n\r\n 1') | nc -lp 1111 > /dev/null; done
}
turkeyCfg_postgrest_server=""
turkeyCfg_thumbnail_server="nearspark.reticulum.io"
turkeyCfg_base_assets_path="https://$SUB_DOMAIN-assets.$DOMAIN/hubs/"
turkeyCfg_non_cors_proxy_domains="$SUB_DOMAIN.$DOMAIN,$SUB_DOMAIN-assets.$DOMAIN"
turkeyCfg_reticulum_server="$SUB_DOMAIN.$DOMAIN"
turkeyCfg_cors_proxy_server="$SUB_DOMAIN-cors.$DOMAIN"
turkeyCfg_ga_tracking_id=""
turkeyCfg_shortlink_domain="$SUB_DOMAIN.$DOMAIN"
turkeyCfg_ita_server=""
turkeyCfg_sentry_dsn=""
find /www/hubs/ -type f -name *.html -exec sed -i "s/{{rawhubs-base-assets-path}}\//https:\/\/${SUB_DOMAIN}-assets.${DOMAIN}\/hubs\//g" {} \;
find /www/hubs/ -type f -name *.html -exec sed -i "s/{{rawhubs-base-assets-path}}/https:\/\/${SUB_DOMAIN}-assets.${DOMAIN}\/hubs\//g" {} \;
@ -15,5 +21,4 @@ for f in /www/hubs/pages/*.html; do
[[ $var == $prefix* ]] && sed -i "s/$anchor/ <meta name=\"env:${var#$prefix}\" content=\"${!var//\//\\\/}\"\/> $anchor/" $f;
done
done
healthcheck &
nginx -g "daemon off;"