Closed Myridium closed 2 years ago
I will note that by adding
Header add Host "piped.$host"
RequestHeader set Host "piped.$host"
I am now able to access pipedproxy.$host
but registration doesn't work and the site seems a little broken...
Is there any way for me to access your instance to see what may be wrong?
(You can email kavin@kavin.rocks incase you want to do this privately)
@FireMasterK thank you for the offer, but I managed to partially solve it. Apache actually needs ServerAlias
to specify additional ServerName
s beyond the first one. I made that change.
Now I have just have those issues with the site not working properly; cannot register; no feed showing. I navigate to piped.$host
and try to register an account. When I press the "Register" button, nothing happens on the webpage, and the docker log says:
piped-frontend | 2021/12/04 XX:XX:XX [error] 9#9: *651 open() "/usr/share/nginx/html/register" failed (2: No such file or directory), client: XXX.XXX.XXX.XXX, server: localhost, request: "POST /register HTTP/1.1", host: "pipedfrontend", referrer: "https://piped.$host/"
I ran docker exec -t -i <container_id> /bin/sh
to open a shell inside the running 1337kavin/piped-frontend:latest
image, and then navigated to /usr/share/nginx/html
. I listed the files in that directory:
/usr/share/nginx/html # ls -1
50x.html
css
favicon.ico
img
index.html
js
manifest.json
opensearch.xml
precache-manifest.43484a6c04dbdbba2ab012c8b84985a9.js
robots.txt
service-worker.js
workbox-v4.3.1
/usr/share/nginx/html #
... and confirmed that there is indeed no file /usr/share/nginx/html/register
in the container.
Is this a problem with the docker image?
Is this a problem with the docker image?
No, it's not, other deployments don't have this issue.
Okay well, the docker image does not contain /usr/share/nginx/html/register
which the server tries to access.
It's impossible to get a 404 thanks to this line, something else is definitely wrong!
https://github.com/TeamPiped/Piped/blob/master/docker/nginx.conf#L11
It's impossible to get a 404 thanks to this line, something else is definitely wrong!
https://github.com/TeamPiped/Piped/blob/master/docker/nginx.conf#L11
I'm not getting a 404. The "Register" button appears to do nothing on the user end. On the backend, the docker log says that /usr/share/nginx/register
is not found. I deleted all related docker containers and volumes, restarted with docker-compose up
and attached once again to the docker container of piped-frontend
. The file is indeed missing from the container.
I built the piped
image and it is missing the relevant files which are supposed to be copied from /app/dist
to /usr/share/nginx/html
. No login
file and no register
file or directory. Image appears to be broken. Also tried commit hash 0d676c1
. Something is broken with this image.
I'm sorry, but there's no way to help you (since you don't want to share your hostname, and I'm unaware of how apache works) with this as this is clearly a problem on your end.
You can verify this by running:
curl --head -H "Host: piped.kavin.rocks" 127.0.0.1:8080/register
curl --head -H "Host: pipedapi.kavin.rocks" 127.0.0.1:8080/register # Should return a 404, and should indicate varnish's presence
If you find anything that could indicate a problem on my end, let me know and I'll re-open this issue.
The instructions under the heading
Docker-Compose Nginx AIO script
at https://piped-docs.kavin.rocks/docs/self-hosting/ say that all we need to do is set the DNS A records, run the docker, and pass the web traffic from all three hostnames to the nginx instance in the docker container.I've done all this. I've copied the same configuration I have for multiple other web applications on different domains, but I cannot get Piped working. I'm getting a generic
Index of /
page when I navigate topiped.$host
.Here's my Apache httpd config:
And in the
docker-compose
file I haveThe output of
docker-compose up
doesn't print anything extra aftereven when accessing the page.
Output of
docker ps
:...confirming that the server is running and listening on port 8071 on the host.
Likewise,
nmap
tells me the port is open and listening:The hostname in the URL bar is definitely resolving to the right server. It's even rewriting
http
tohttps
per thehttpd
config. But still it shows the genericIndex of /
page.Is this a problem with
Piped-Docker
? Any ideas?