Skip to content

Commit abb00bb

Browse files
committed
Merge branch 'master' into fix-npe-no-repo
2 parents ece237d + 67d7388 commit abb00bb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/content/doc/usage/https-support.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ KEY_FILE = key.pem
4040
Note that if your certificate is signed by a third party certificate authority (i.e. not self-signed), then cert.pem should contain the certificate chain. The server certificate must be the first entry in cert.pem, followed by the intermediaries in order (if any). The root certificate does not have to be included because the connecting client must already have it in order to estalbish the trust relationship.
4141
To learn more about the config values, please checkout the [Config Cheat Sheet](../config-cheat-sheet#server-server).
4242

43+
For the `CERT_FILE` or `KEY_FILE` field, the file path is relative to the `GITEA_CUSTOM` environment variable when it is a relative path. It can be an absolute path as well.
44+
4345
### Setting up HTTP redirection
4446

4547
The Gitea server is only able to listen to one port; to redirect HTTP requests to the HTTPS port, you will need to enable the HTTP redirection service:

models/user/user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ func updateUser(ctx context.Context, u *User, changePrimaryEmail bool) error {
855855
if _, err := e.Insert(&emailAddress); err != nil {
856856
return err
857857
}
858-
} else if _, err := e.ID(emailAddress).Cols("is_primary").Update(&EmailAddress{
858+
} else if _, err := e.ID(emailAddress.ID).Cols("is_primary").Update(&EmailAddress{
859859
IsPrimary: true,
860860
}); err != nil {
861861
return err

0 commit comments

Comments
 (0)