Code Monkey home page Code Monkey logo

Comments (4)

eternal-flame-AD avatar eternal-flame-AD commented on May 23, 2024

Since you enabled SSL but did not enable let's encrypt, you need to manually specify the SSL certificate location:

GOTIFY_SERVER_SSL_CERTFILE=/path/to/your/cert.pem
GOTIFY_SERVER_SSL_CERTKEY=/path/to/your/privkey.pem

from server.

monsieurpouet avatar monsieurpouet commented on May 23, 2024

Humm, if I understand.
Either, I use SSL with the pem file, or I use LetsEcnrypts isn't it ?

For put the pem file, I have to activate my letsecnrypt with my virtualhost, and start my container after.

from server.

jmattheis avatar jmattheis commented on May 23, 2024

@monsieurpouet Yeah, you either need the private key and certificate or use letsencrypt if you want gotify/server to handle TLS. Otherwise you could use a reverse proxy (something like nginx or Caddy) which handles https requests and proxies them to gotify/server.

from server.

monsieurpouet avatar monsieurpouet commented on May 23, 2024

Okay ! So, this my docker-compose:

version: '3'
services:
    gotify:
        image: gotify/server
        ports:
                - '127.0.0.1:2083:443'
        volumes:
                - /etc/gotify:/app/data
        environment:
                - GOTIFY_SERVER_PORT=80
                - GOTIFY_SERVER_SSL_ENABLED=true
                - GOTIFY_SERVER_SSL_REDIRECTTOHTTPS=true
                - GOTIFY_SERVER_SSL_PORT=443
                - GOTIFY_SERVER_SSL_LETSENCRYPT_ENABLED=true
                - GOTIFY_SERVER_SSL_LETSENCRYPT_ACCEPTTOS=false
                - GOTIFY_SERVER_SSL_LETSENCRYPT_CACHE=certs
                - GOTIFY_SERVER_SSL_LETSENCRYPT_HOSTS=- push.blabla.fr
                - GOTIFY_DATABASE_DIALECT=sqlite3
                - GOTIFY_DATABASE_CONNECTION=gotify.db
                - GOTIFY_DEFAULTUSER_NAME=username
                - GOTIFY_DEFAULTUSER_PASS=pass
                - GOTIFY_UPLOADEDIMAGESDIR=images

I've generate my SSL certs before with my virtualhost. Gotify is alive.

I'll open other question about virtualhost. I've found a nginx configuration, but it's so hard to translate it to apache vh.

from server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.