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

NoReply Address Always Dummy Address Regardless of Root URL Domain #9275

Closed
2 of 7 tasks
bagasme opened this issue Dec 7, 2019 · 6 comments · Fixed by #9325
Closed
2 of 7 tasks

NoReply Address Always Dummy Address Regardless of Root URL Domain #9275

bagasme opened this issue Dec 7, 2019 · 6 comments · Fixed by #9325
Labels
type/docs This PR mainly updates/creates documentation

Comments

@bagasme
Copy link
Contributor

bagasme commented Dec 7, 2019

  • Gitea version (or commit ref): 1.9.0
  • Git version: 2.17.1
  • Operating system: Ubuntu 18.04
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:
    (not relevant)

Description

Installing Gitea set NO_REPLY_ADDRESS option on app.ini to dummy noreply@example.org address, regardless of domain in ROOT_URL. For NoReply emails to function correctly, use address from same domain as in ROOT_URL. For example, if ROOT_URL domain is mygitea.instance, NO_REPLY_ADDRESS should be noreply@mygitea.instance.

Screenshots

(not relevant)

@bagasme bagasme changed the title NoReply Address Always Default Address Regardless Root URL NoReply Address Always Dummy Address Regardless of Root URL Domain Dec 7, 2019
@lunny lunny added the type/docs This PR mainly updates/creates documentation label Dec 7, 2019
@bagasme
Copy link
Contributor Author

bagasme commented Dec 10, 2019

@lunny I think kind/docs label isn't appropriate here, as this issue is about configuration.

@zeripath
Copy link
Contributor

If I understand you correctly You mean to say that on this line:

Service.NoReplyAddress = sec.Key("NO_REPLY_ADDRESS").MustString("noreply.example.org")

You think the default should be:

Service.NoReplyAddress = sec.Key("NO_REPLY_ADDRESS").MustString(Domain)

You would need to update:

NO_REPLY_ADDRESS = noreply.example.org

NO_REPLY_ADDRESS = %(DOMAIN)s

And it would be helpful to add a description in to https://github.com/go-gitea/gitea/blob/master/docs/content/doc/advanced/config-cheat-sheet.en-us.md#service-service as this option is not documented there.

@bagasme
Copy link
Contributor Author

bagasme commented Dec 11, 2019

@zeripath what's purpose of %(DOMAIN)s?

@zeripath
Copy link
Contributor

It's just to document that the default value is the string value of DOMAIN

@bagasme
Copy link
Contributor Author

bagasme commented Dec 11, 2019

OK, but I'd like to assign this issue to someone else instead. I'm just contributing to Gitea by reporting issues (currently).

@bagasme
Copy link
Contributor Author

bagasme commented Dec 13, 2019

@zeripath thanks for the PR

@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/docs This PR mainly updates/creates documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants