mirror of
https://github.com/wireadmin/wireadmin
synced 2025-01-23 04:17:00 +00:00
update
This commit is contained in:
parent
beae28270e
commit
6bd9a63ad7
@ -47,8 +47,8 @@ RUN npm install --omit dev
|
||||
|
||||
EXPOSE 3000/tcp
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
||||
CMD curl -f http://127.0.0.1:3000/api/wireguard/healthcheck || exit 1
|
||||
HEALTHCHECK --interval=60s --timeout=10s --start-period=5s --retries=3 \
|
||||
CMD curl -f http://127.0.0.1:3000/api/healthcheck || exit 1
|
||||
|
||||
COPY docker-entrypoint.sh /usr/bin/entrypoint
|
||||
RUN chmod +x /usr/bin/entrypoint
|
||||
|
@ -29,7 +29,7 @@ COPY /config/torrc /etc/tor/torrc
|
||||
EXPOSE 3000/tcp
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
||||
CMD curl -f http://127.0.0.1:3000/api/wireguard/healthcheck || exit 1
|
||||
CMD curl -f http://127.0.0.1:3000/api/healthcheck || exit 1
|
||||
|
||||
COPY docker-entrypoint.sh /usr/bin/entrypoint
|
||||
RUN chmod +x /usr/bin/entrypoint
|
||||
|
@ -91,6 +91,6 @@ echo -e "========================================================\n"
|
||||
sleep 1
|
||||
|
||||
# After 10 seconds, export the database to the WireGuard config file
|
||||
screen -dm bash -c "sleep 10; curl -s -o /dev/null http://127.0.0.1:3000/api/wireguard/healthcheck"
|
||||
screen -dm bash -c "sleep 10; curl -s -o /dev/null http://127.0.0.1:3000/api/healthcheck"
|
||||
|
||||
exec "$@"
|
||||
|
@ -10,8 +10,9 @@ export default withAuth({
|
||||
})
|
||||
|
||||
// See "Matching Paths" below to learn more
|
||||
// https://nextjs.org/docs/app/building-your-application/routing/middleware#matching-paths
|
||||
export const config = {
|
||||
matcher: [
|
||||
'/((?!api/auth|api/wireguard/healthcheck|api/ping|login|logo.png|fonts|_next/static|_next/image|favicon.ico).*)',
|
||||
'/((?!api/auth|api/healthcheck|_next/static|_next/image|login|logo.png|fonts|favicon.ico).*)',
|
||||
],
|
||||
}
|
@ -9,7 +9,7 @@ function publicENV(ex = {}) {
|
||||
const nextConfig = {
|
||||
reactStrictMode: true,
|
||||
transpilePackages: [],
|
||||
env: publicENV({ NEXTAUTH_URL: 'http://127.0.0.1:3000' }),
|
||||
env: publicENV({}),
|
||||
images: {
|
||||
domains: [ 'img.shields.io' ]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user