openbooks icon indicating copy to clipboard operation
openbooks copied to clipboard

TLS not working

Open Unrepentant-Atheist opened this issue 1 year ago • 8 comments

I got this docker-compose running:

---
version: '3.3'
services:
    openbooks:
        image: evanbuss/openbooks
        container_name: openbooks
        #command: --name dontwannagive --persist
        command: --name dontwannagive --persist --tls=false -s irc.irchighway.net:6660
        ports:
            - 8180:80
        volumes:
            - /home/xxx/docker-data/openbooks:/books
        environment:
            - NODE_ENV=production
        labels:
            - deunhealth.restart.on.unhealthy=true
        restart: unless-stopped
networks:
  default:
    name: dockernet
    external: true

Notice command: --name dontwannagive --persist --tls=false -s irc.irchighway.net:6660 --> --tls=false , if I turn it to true, then it can't connect to the IRC. Kinda want to use encryption...

Unrepentant-Atheist avatar Jul 23 '23 08:07 Unrepentant-Atheist

I tried using this docker compose (obviously changed to my volume and username) but could not get search to work still.

AlexStapleton avatar Jul 24 '23 16:07 AlexStapleton

I believe default is true, so don't think you need to specify --tls=true to make it work, maybe thats why? My compose works (but haven't confirmed its actually using TLS)

345     container_name: openbooks
346     image: evanbuss/openbooks:latest
347     restart: always
348     ports:
349       - $OPENBOOKS_PORT:80
350     volumes:
351       - /mnt/mediaLibrary/books:/books
352     command: --name johndoe --persist```

bterps avatar Sep 18 '23 09:09 bterps

Default compose doesn't work for me, that's why I have to run with --tls=false and commented out the default #command: --name dontwannagive --persist. Otherwise it's can't connect.

Unrepentant-Atheist avatar Sep 23 '23 18:09 Unrepentant-Atheist

make sure you enable HSTS in your reverse proxy settings if you are using one!

Kribbage avatar Nov 14 '23 19:11 Kribbage

Thanks, --tls=false fixed my instance.

ikidd avatar Jan 05 '24 07:01 ikidd

Could this be cause irc.highway.net changed their ports? From their homepage:

The ports we support are 6660 to 6669 and 7000. For connections through SSL use port 6697 or 9999.

99linesofcode avatar Feb 05 '24 16:02 99linesofcode

Yes, indeed. 6697 or 9999 works!

Unrepentant-Atheist avatar May 11 '24 10:05 Unrepentant-Atheist

Gotta reopen it again.

The command command: --name FattyMcFattington --persist -s irc.irchighway.net:6697 or command: --name FattyMcFattington --persist -s irc.irchighway.net:9999 worked, now it doesn't anymore.

Correction: It works about 2 out of 15 times only.

Unrepentant-Atheist avatar May 18 '24 21:05 Unrepentant-Atheist