diff --git a/docker-compose.yml b/docker-compose.yml index d1d99b6..9612e73 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,8 +2,8 @@ services: markmywords: build: . container_name: markmywords - ports: - - "5000:5000" + expose: + - "5000" volumes: # Configuration directory with password file - ./config:/config:rw @@ -19,3 +19,11 @@ services: # Python unbuffered output for real-time logs PYTHONUNBUFFERED: 1 restart: unless-stopped + networks: + - markmywords-standalone + +networks: + markmywords-standalone: + name: markmywords-standalone-network + driver: bridge + external: true diff --git a/templates/password_prompt.html b/templates/password_prompt.html index 276e783..6379448 100644 --- a/templates/password_prompt.html +++ b/templates/password_prompt.html @@ -137,7 +137,7 @@ button.textContent = 'Authenticating...'; try { - const response = await fetch('/api/auth/{{ repo }}/{{ filepath }}', { + const response = await fetch('/api/auth/{{ filepath }}', { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded',