Skip to content

Commit

Permalink
Merge pull request #10 from j4ys0n/nginx-config
Browse files Browse the repository at this point in the history
remove extra newline in default config
  • Loading branch information
j4ys0n authored Jul 12, 2024
2 parents 70bacc5 + 9708759 commit 4fe9823
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "llm-proxy",
"version": "1.2.0",
"version": "1.2.1",
"description": "Manages Nginx for reverse proxy to multiple LLMs, with TLS & Bearer Auth tokens",
"main": "dist/index.js",
"scripts": {
Expand Down
18 changes: 1 addition & 17 deletions src/static/nginx-server-template.conf
Original file line number Diff line number Diff line change
Expand Up @@ -44,25 +44,9 @@ server {
proxy_buffering off;
client_max_body_size 0;
proxy_read_timeout 36000s;
{{allowedIPs}}
deny all;
{{allowedIPs}} deny all;
}

# location ~ (.*) {
# proxy_pass_header Authorization;
# proxy_pass http://localhost:8080;
# proxy_redirect off;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_http_version 1.1;
# proxy_set_header Upgrade $http_upgrade;
# proxy_set_header Connection 'upgrade';
# proxy_set_header Host $host;
# proxy_cache_bypass $http_upgrade;
# proxy_buffering off;
# client_max_body_size 0;
# proxy_read_timeout 36000s;
# }
location ~ (.*) {
return 404;
}
Expand Down

0 comments on commit 4fe9823

Please sign in to comment.