{"action":"created","issue":{"url":"https://api.github.com/repos/gotify/server/issues/90","repository_url":"https://api.github.com/repos/gotify/server","labels_url":"https://api.github.com/repos/gotify/server/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/gotify/server/issues/90/comments","events_url":"https://api.github.com/repos/gotify/server/issues/90/events","html_url":"https://github.com/gotify/server/issues/90","id":385638961,"node_id":"MDU6SXNzdWUzODU2Mzg5NjE=","number":90,"title":"panic: pq: SSL is not enabled ","user":{"login":"doronbehar","id":10998835,"node_id":"MDQ6VXNlcjEwOTk4ODM1","avatar_url":"https://avatars2.githubusercontent.com/u/10998835?v=4","gravatar_id":"","url":"https://api.github.com/users/doronbehar","html_url":"https://github.com/doronbehar","followers_url":"https://api.github.com/users/doronbehar/followers","following_url":"https://api.github.com/users/doronbehar/following{/other_user}","gists_url":"https://api.github.com/users/doronbehar/gists{/gist_id}","starred_url":"https://api.github.com/users/doronbehar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doronbehar/subscriptions","organizations_url":"https://api.github.com/users/doronbehar/orgs","repos_url":"https://api.github.com/users/doronbehar/repos","events_url":"https://api.github.com/users/doronbehar/events{/privacy}","received_events_url":"https://api.github.com/users/doronbehar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-29T09:19:15Z","updated_at":"2018-11-30T13:06:39Z","closed_at":null,"author_association":"NONE","body":"I get an error when running the server with the following configuration:\r\n\r\n```yaml\r\nserver:\r\n  port: 8001 # the port for the http server\r\n  ssl:\r\n    enabled: false # if https should be enabled\r\n    redirecttohttps: true # redirect to https if site is accessed by http\r\n    port: 8002 # the https port\r\n    certfile: /etc/letsencrypt/live/doronbehar.com/fullchain.pem # the cert file (leave empty when using letsencrypt)\r\n    certkey: /etc/letsencrypt/live/doronbehar.com/privkey.pem # the cert key (leave empty when using letsencrypt)\r\n    letsencrypt:\r\n      enabled: false # if the certificate should be requested from letsencrypt\r\n      accepttos: false # if you accept the tos from letsencrypt\r\n      cache: data/certs # the directory of the cache from letsencrypt\r\n      hosts: # the hosts for which letsencrypt should request certificates\r\n      - doronbehar.com\r\ndatabase: # for database see (configure database section)\r\n  dialect: postgres\r\n  connection: host=localhost port=5432 user=gotify dbname=gotify password=xxx\r\n\r\ndefaultuser: # on database creation, gotify creates an admin user\r\n  name: admin # the username of the default user\r\n  pass: admin # the password of the default user\r\npassstrength: 10 # the bcrypt password strength (higher = better but also slower)\r\nuploadedimagesdir: data/images # the directory for storing uploaded images\r\n```\r\n\r\nError message:\r\n\r\n```\r\nStarting Gotify version 1.2.0@2018-11-24-11:06:13\r\nFailed to find configuration config.yml\r\npanic: pq: SSL is not enabled on the server\r\n\r\ngoroutine 1 [running]:\r\nmain.main()\r\n        /home/travis/gopath/src/github.com/gotify/server/app.go:44 +0x425\r\n```\r\n\r\nThe same error appears when enabling and disabling ssl."},"comment":{"url":"https://api.github.com/repos/gotify/server/issues/comments/443198131","html_url":"https://github.com/gotify/server/issues/90#issuecomment-443198131","issue_url":"https://api.github.com/repos/gotify/server/issues/90","id":443198131,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MzE5ODEzMQ==","user":{"login":"doronbehar","id":10998835,"node_id":"MDQ6VXNlcjEwOTk4ODM1","avatar_url":"https://avatars2.githubusercontent.com/u/10998835?v=4","gravatar_id":"","url":"https://api.github.com/users/doronbehar","html_url":"https://github.com/doronbehar","followers_url":"https://api.github.com/users/doronbehar/followers","following_url":"https://api.github.com/users/doronbehar/following{/other_user}","gists_url":"https://api.github.com/users/doronbehar/gists{/gist_id}","starred_url":"https://api.github.com/users/doronbehar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doronbehar/subscriptions","organizations_url":"https://api.github.com/users/doronbehar/orgs","repos_url":"https://api.github.com/users/doronbehar/repos","events_url":"https://api.github.com/users/doronbehar/events{/privacy}","received_events_url":"https://api.github.com/users/doronbehar/received_events","type":"User","site_admin":false},"created_at":"2018-11-30T13:06:39Z","updated_at":"2018-11-30T13:06:39Z","author_association":"NONE","body":"That worked, my server is up and running, thanks. This flag is not documented right?\r\n\r\nAdditionally, Why is there the `Failed to find configuration config.yml` message when it does exist in it's default location `/etc/gotify`?"}}
{"actor":{"display_login":"doronbehar"}}