Skip to content

Commit

Permalink
Tested with patlu in platform-test, works with podman and ko.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelfrykholm committed Aug 5, 2024
1 parent 01c22e7 commit 517f176
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions templates/forgejo/nginx.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -305,14 +305,8 @@ proxy_set_header X-Forwarded-Ssl $proxy_x_forwarded_ssl;
proxy_set_header X-Forwarded-Port $proxy_x_forwarded_port;
proxy_set_header X-Original-URI $request_uri;

/* Try to work better when talking to docker container registry
taken from https://jfrog.com/help/r/artifactory-how-to-deal-with-pushing-larger-images-failure-in-artifactory-with-nginx-as-a-reverse-proxy/artifactory-how-to-deal-with-pushing-larger-images-failure-in-artifactory-with-nginx-as-a-reverse-proxy
*/
proxy_request_buffering off;
proxy_max_temp_file_size 0;
client_max_body_size 0;
proxy_read_timeout 3600;
proxy_send_timeout 3600;
client_max_body_size 512M;


# Mitigate httpoxy attack (see README for details)
proxy_set_header Proxy "";
Expand Down

0 comments on commit 517f176

Please sign in to comment.