Skip to content
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

Docker install not accessible from f-droid client. #37

Closed
LsPjvVzszDt opened this issue Nov 2, 2018 · 8 comments
Closed

Docker install not accessible from f-droid client. #37

LsPjvVzszDt opened this issue Nov 2, 2018 · 8 comments

Comments

@LsPjvVzszDt
Copy link

I've installed the docker image and am running the following config:

docker run -d --name playmaker
-p 5000:5000
-v /srv/fdroid:/data/fdroid
-v /etc/letsencrypt/live/playmaker.example.com/cert.pem:/srv/cert.pem
-v /etc/letsencrypt/live/playmaker.example.com/privkey.pem:/srv/privkey.pem
-e HTTPS_CERTFILE="/srv/cert.pem"
-e HTTPS_KEYFILE="/srv/privkey.pem"
-e LANG_LOCALE="en_GB"
-e LANG_TIMEZONE="Europe/London"
nomore201/playmaker

I can access https://playmaker.example.com:5000/#!/ and have downloaded a dozen apps from the play store.

Updating the fdroid repo looks to be working OK in that I can see the apps and index files being updated.

The issue I'm seeing is that when I add the repo (URL https://playmaker.example.com:5000/fdroid) to an f-droid client it is being reported as unsigned (I thought unsigned repo's are no longer supported). And when doing a repo update the client reports error getting index file for the repo.

Does someone know what needs to be done to resolve these issues?

Thanks

L

@mietzen
Copy link

mietzen commented Nov 2, 2018

I got the same Issue running the container on a Synology NAS

@Findus23
Copy link

Hi,
did you check #32 (comment)?
The URL should have a trailing slash (/fdroid/).

@LsPjvVzszDt
Copy link
Author

Yes. I had already tested that.

If I put a trailing / in the Playmaker config it did not change the URL displayed on the Playmaker page.

If I add the / to the URL in F-Droid it drops it.

@slim8shady9
Copy link

slim8shady9 commented Nov 18, 2018

Maybe your certificate is not trusted. You will always get that error unless your Android system trusts Playmaker's certificate.
Now you have three choices:

  1. Use HTTP (if you are in a safe local network it's still acceptable)
  2. Publish Playmaker's repo on Internet and buy a certificate (or use Let's Encrypt)
  3. Force your self-signed certificate on your device system trusted certs (this helped me a lot, tested 100%, root privileges needed)
    The author should warn about this issue in the readme (IMHO).

@mietzen
Copy link

mietzen commented Nov 18, 2018

Thanks @slim8shady9 I'll try it tomorrow 👍

@LsPjvVzszDt
Copy link
Author

My certs are fine and trusted.

@mietzen
Copy link

mietzen commented Nov 20, 2018

Maybe your certificate is not trusted. You will always get that error unless your Android system trusts Playmaker's certificate.
Now you have three choices:

1. Use HTTP (if you are in a safe local network it's still acceptable)

2. Publish Playmaker's repo on Internet and buy a certificate (or use Let's Encrypt)

3. Force your self-signed certificate on your device system trusted certs ([this](https://blog.jeroenhd.nl/article/android-7-nougat-and-certificate-authorities) helped me a lot, tested 100%, root privileges needed)
   The author should warn about this issue in the readme (IMHO).

For testing purposes I switched to http and it works 👍
In the near future I'll try option 2 and/or 3

@LsPjvVzszDt
Copy link
Author

LsPjvVzszDt commented Nov 20, 2018

I've just tested http and that worked.

I've just run some tests and can resolve this issue by using the Letsencrypt fullchain.pem instead of cert.pem so for the above example config the change is:

-v /etc/letsencrypt/live/playmaker.example.com/cert.pem:/srv/cert.pem

to

-v /etc/letsencrypt/live/playmaker.example.com/fullchain.pem:/srv/cert.pem \

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants