forked from TeamPiped/piped-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
05b36b7
commit 00a597e
Showing
4 changed files
with
19 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
FROM nginx:mainline | ||
|
||
ENV UDS=1 BIND_UNIX=/var/run/piped-proxy/actix.sock | ||
|
||
WORKDIR /app/ | ||
|
||
RUN apt-get update && \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,18 @@ | ||
proxy_buffering on; | ||
proxy_buffers 1024 16k; | ||
proxy_set_header X-Forwarded-For ""; | ||
proxy_set_header CF-Connecting-IP ""; | ||
proxy_hide_header "alt-svc"; | ||
sendfile on; | ||
sendfile_max_chunk 512k; | ||
tcp_nopush on; | ||
aio threads=default; | ||
aio_write on; | ||
directio 16m; | ||
proxy_hide_header Cache-Control; | ||
proxy_hide_header etag; | ||
proxy_http_version 1.1; | ||
proxy_set_header Connection keep-alive; | ||
proxy_max_temp_file_size 32m; | ||
# access_log off; | ||
proxy_max_temp_file_size 32m; | ||
proxy_pass http://unix:/var/run/piped-proxy/actix.sock; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters