Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

fix e-mail sender and remove compose example (#134)

Guilherme Oenningad245b5f37df
diff --git a/app/pkg/email/smtp/smtp.go b/app/pkg/email/smtp/smtp.go
index 2ff78ba6a..695aa72db 100644
--- a/app/pkg/email/smtp/smtp.go
+++ b/app/pkg/email/smtp/smtp.go
@@ -38,5 +38,5 @@ func (s *Sender) Send(from, to, subject, message string) error {
servername := fmt.Sprintf("%s:%s", s.host, s.port)
auth := gosmtp.PlainAuth("", s.username, s.password, s.host)
- return gosmtp.SendMail(servername, auth, from, []string{to}, []byte(body))
+ return gosmtp.SendMail(servername, auth, email.NoReply, []string{to}, []byte(body))
}
diff --git a/docs/docker-compose.yml b/docs/docker-compose.yml
deleted file mode 100644
index bfd2ceb30..000000000
--- a/docs/docker-compose.yml
+++ /dev/null
@@ -1,46 +0,0 @@
-version: '2'
-services:
- db:
- restart: always
- image: postgres:9.6
- environment:
- POSTGRES_USER: fider
- POSTGRES_PASSWORD: s0m3g00dp4ssw0rd
-
- app:
- restart: always
- image: getfider/fider:latest
- ports:
- - "9999:8080"
- environment:
- PORT: 8080
-
- # Use production for best performance or development for more verbose logging
- GO_ENV: production
-
- # The address where the application is listening to
- # Change it according to your DNS settings, eg.: http://feedback.mycompany.com
- AUTH_ENDPOINT: http://localhost:9999
-
- # Connection string to the Postgres database (following example uses Docker defined above)
- DATABASE_URL: postgres://fider:s0m3g00dp4ssw0rd@db:5432/fider?sslmode=disable
-
- # You can generate a new salt here: https://api.wordpress.org/secret-key/1.1/salt/
- JWT_SECRET: Ml_1%vQwv]lchqm5;>y2(xKbU@Q@Lybwb(COx+d.o3&|5>)y;~G[KuWWYvR--6_g
-
- # At least one of the following auth method needs to be enabled
-
- # Facebook: https://developers.facebook.com/apps/
- # OAUTH_FACEBOOK_APPID: <fb_app_id>
- # OAUTH_FACEBOOK_SECRET: <fb_app_secret>
-
- # GitHub: https://github.com/settings/applications/new
- # OAUTH_GITHUB_APPID: <github_client_id>
- # OAUTH_GITHUB_SECRET: <github_secret>
-
- # Google: https://console.developers.google.com
- # OAUTH_GOOGLE_CLIENTID: <google_client_id>
- # OAUTH_GOOGLE_SECRET: <google_secret>
-
- depends_on:
- - db
\ No newline at end of file