-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ownfoil doesn't work with reverse proxy #26
Comments
I have a very similar experience using Nginx Proxy Manager. I can see all the files via browser but the shop is blank in Tinfoil. More troubleshooting is needed. |
It's working fine for me. |
Had this same issue - I have NPM on a VPS pointing to my server with Traefik. Browser worked, Tinfoil didn't. Removed my authentication from Ownfoil (the reverse proxy only accepts requests from my home IP), and it worked. Obviously not a perfect solution, but a reasonable workaround and hopefully can help diagnose the issue. EDIT: actually, it still doesn't work - I get failed to open NSP when I try to download a game. |
so without the reverse proxy on http only with port forwarding it is working. Not the best solution but it works |
Same here. Haven't tried authentication yet though. |
any update on this? its not working when using nginx https proxy, only http. |
Reverse proxying with Caddy didn't work for me either. I used a Cloudflare Tunnel instead. |
Tried it with docker-compose, I could confirm this should work with curl on the laptop (curl https://myurl:8000 -v).
Unfortunately, this doesn't work on the switch. The certificate is valid. Does v2 work? |
If you use the In the v2 version (currently in development) reverse proxies should work, though I have yet to test it. |
I'm very sorry,perhaps I do not fully understand either nginx or docker-compose, but how to I add the ssl configuration without touching ownfoils port 80 configuration in nginx (as a different site, or .conf)? I tried another container with a reverse proxy and that works for curl but not for the switch itself. If I try to add another server with 443 ssl, it says the directive server is not allowed and if I use another http, it says it is a duplicate in the original nginx.conf. I want to add additional (ssl) configuration, without touching the docker(-compose) default configuration of the ownfoil setup. Can someone send me in the right direction with this? I've tried several combinations. |
I can't get reverse proxy working, even on v2.0. I can access the admin panel fine using http://tinfoil.'mydomain'.com but when i enter the details in tinfoil it's not working. Working fine with local IP. Working fine with public IP and port opened up. Not sure if I'm entering something wrong in tinfoil. Currently I have: Protocol: http Any other troubleshooting steps I can could take? EDIT: Seems like it's actually working in some form. I can access the games through file manager, but I don't get the welcome message when I start tinfoil, and the search doesn't work. |
If I use "Public Shop," it works for me through Nginx Proxy Manager (HTTPS). However, if I disable "Public Shop" and try to connect with a username and password, the shop doesn't load on Tinfoil startup, but I can browse the file browser (which then shows the success message) and see the content. Here's what I tested: Public Shop:
Non-Public Shop (with user/pass in Tinfoil):
Non-Public Shop (without user/pass in Tinfoil):
Seems a bit of a strange behavior. (the more i play with this the more it feels like a tinfoil issue....) I hope this helps in some way. |
@Terror-Gene thanks for the detailed report, although I can't reproduce any issue with Tinfoil authentication, it works locally on the network with I personally use nginx-proxy/nginx-proxy which work without issue, let me know if you still have problems. |
Hey so I seem to be getting this funny issue aswel when running ownfoil on my nginx reverse proxy. The EXACT symptoms as @Terror-Gene here #26 (comment) I use swag as my main servers reverse proxy setup. proxy.conf and resolver.conf is part of base swag the only thing I added is ownfoil.subdomain.conf. this same setup works on all 20 other containers I am running on my server ownfoil.subdomain.conf
resolver.conf
proxy.conf
|
I see this issue so I wanted to share my nginx reverse proxy config to see if it helps anyone. I use a subdomain (tinfoil.x.x) as my method of access using nginx in a VM.
|
I ran into a similar problem. When running through caddy the only part of Tinfoil that worked was the file browser. New games/dlc weren't visible and the 'Install All DLC/Latest Update' options from Tinfoil didn't seem to work. No issues actually installing the files however. Everything worked fine once I removed caddy. Feels like a tinfoil problem but idk. |
This is probably because of the http Auth used in the container. I have not test it but setting it to public shop then adding the http Auth in your reverse proxy should work. Will give it a try tomorrow. |
Just wanted to stop in to say I was getting this error but with Cloudflare Tunnel, I can get around it by disabling "Always Use HTTPS" in Edge Certificates. |
try adding to your location block |
I think I solved this as I have faced the same issue when working on Tinshop-ng. |
@ajmandourah thanks for the hint, although all requests served to Tinfoil explicitly have the Now I am more convinced that the problem is in the reverse proxy configuration, I don't see anything different for Ownfoil... I'll try to change my reverse proxy configuration until it breaks and I can reproduce the issues described here and pinpoint the root cause. |
I see. It's been awhile since I do python. But jsonify should set a json header automatically I guess. Try caddy as it was not working till I sat the header manually. I will do some testing when I have the time and give you some feedback |
Tried this in a custom location block for / on Nginx Proxy Manager and sadly it made no difference. If I direct tinfoil directly at my server locally with port 8465 it works with authentication, but if I use a local reverse proxy (http://ownfoil.lan) or exposed reverse proxy (https://foil.domain.com) the tinfoil shop shows as empty and no files are listed in the browser. The docker terminal logs (displayed on Dockge) also don't seem to receive any API requests from Tinfoil, despite being able to browse to either of the above URLs and log in to see the UI as expected. Update: After closing Tinfoil and reopening, it threw an error that the "Shop requires Authentication" so clearly the above approach didn't work. Howver, removing the custom location block and reverting to previous results in the shop working, to some extent (I get the shop welcome message and can see my files in "File Browser" but no New Games list appears as it does if I don't use reverse proxy, even after restarting Tinfoil). Very confusing |
Hi and at first thanks for this great docker container :D
It is working so far on my LAN but i want to set it up via dyndns with nginx as reverse proxy but with this the data won't load at all in tinfoil.
When i open up the dyndns like https://switch.my.dyndns.name with the login credentials i see the .nsp and all like it should be but when i add it to tinfoil with https and host and all nothing happend. . .
Does anyone has set up something similar with an reverse proxy?
The text was updated successfully, but these errors were encountered: