Skip to content

Commit

Permalink
bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
klementng committed Aug 28, 2023
1 parent 65e3b09 commit 3a10765
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ COPY . .

ENV PATH="$PATH:/app/scripts"

CMD ["python3","main.py","server" ,"start"]
CMD ["server.core" ,"start"]
7 changes: 1 addition & 6 deletions examples/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,11 @@ server {

location /auth
{
set $query '';
if ($request_uri ~* "[^\?]+\?(.*)$") {
set $query $1;
}

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass_request_body off;
proxy_set_header Content-Length "";

proxy_pass http://localhost:9999$uri$query;
proxy_pass http://localhost:9999$uri;
}
}

Expand Down
1 change: 0 additions & 1 deletion server/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ def process_auth_header(auth_header: str, module: str, allowed_users: tuple = No


if method == "Basic":
logger.debug(request.headers)
status_code = mod.login(username, password, request_headers=copy.copy(dict(request.headers)))

if status_code == 200:
Expand Down

0 comments on commit 3a10765

Please sign in to comment.