NGINX invalid gateway 502, upstream sent too big header
Hi, I have a problem I never encountered before:
This is using the Nixpacks, so I dont think I can edit the nginx.conf file, if this only solvable by using docker, could someone guide me trough it, I never used docker, but my github repo of this project is open so anyone could take a look at it!
Its boilerplate material right now, but I want to make a game with Vue and Laravel.
https://github.com/GILLESMaster/Krilinga
Project ID (e54f7042-71b3-4bc4-b530-c2d41b9cad7c)
π Thx in advance!
13 Replies
Project ID:
e54f7042-71b3-4bc4-b530-c2d41b9cad7c
Other pages work
Altough you can get to this page, refreshing will result in 502 bad gateway with the
error
Solution
you actually can provide your own nginx config
https://nixpacks.com/docs/providers/php
omg
THX
I will mark this resolved unless it didnt fix it! π
I might have mistyped something
Ironic commit desc lol
@Brody doesnt work, even the template nginx.conf
https://github.com/railwayapp/nixpacks/blob/main/src/providers/php/nginx.template.conf
where have you changed the max header size?
Is under
in
@Brody
nginx: [emerg] host not found in "${PORT}" of the "listen" directive in /app/nginx.conf:25
this also gave me errors
I think the placeholders dont get updated?
I fixed the mime.types by using a custom one in the root dir and pointing to that
but how do I asign the random port each time?
my latest change:
brb, ping me when needed!
I have tried many things, still nothing works,
π
its very odd that its not getting escaped, ive used that template without issues myself
oh
i see
when you use a template nginx config it needs to be specifically named
nginx.template.conf
but you just have it named nginx.conf
therefore its not being treated as a template
@πΎπ¦π€π₯ππ§π πππππ‘ohhhhhh
It indeed works now!
awesome!!
glad I could help π