diff --git a/client/plugins/ipv4default.server.ts b/client/plugins/ipv4default.server.ts deleted file mode 100644 index 064e949ec..000000000 --- a/client/plugins/ipv4default.server.ts +++ /dev/null @@ -1,24 +0,0 @@ -type DnsType = { - setDefaultResultOrder: (order: string) => void; -}; - -/* -This plugin sets the node default dns result order to ipv4 first -This is necessary, because the default resolve order has been changed in node 17 -See: https://github.com/nodejs/node/issues/40537#issuecomment-1237194449 -*/ -export default defineNuxtPlugin(nuxtApp => { - nuxtApp.hook('app:created', async () => { - try { - const dns = (await import('node:dns').catch(() => { - // Drop silently - })) as unknown as DnsType; - - if (dns && dns.setDefaultResultOrder && typeof dns.setDefaultResultOrder === 'function') { - dns.setDefaultResultOrder('ipv4first'); - } - } catch { - // Drop silently - } - }); -}); diff --git a/docker-compose.yml b/docker-compose.yml index c3ae1a4f2..6d612065d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,8 +13,6 @@ services: environment: VIEWTUBE_DATABASE_HOST: viewtube-db VIEWTUBE_REDIS_HOST: viewtube-redis - VIEWTUBE_DATA_DIRECTORY: /data - VIEWTUBE_CLUSTERED: false VIEWTUBE_ADMIN_USER: admin viewtube-db: diff --git a/server/src/main.ts b/server/src/main.ts index e370899da..17ef1f9d6 100644 --- a/server/src/main.ts +++ b/server/src/main.ts @@ -148,7 +148,7 @@ const bootstrap = async () => { app.enableShutdownHooks(); // START - await app.listen(port, '0.0.0.0', (err, _address) => { + await app.listen(port, '::', (err, _address) => { if (err) { logger.error(err); process.exit(1);