-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
add letsencrypt to Gitea #4189
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
Merged
Merged
add letsencrypt to Gitea #4189
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
aa3fccb
add letsencrypt to Gitea
flynnnnnnnnnn 2771df7
downgrade cypto lib
flynnnnnnnnnn dd01b57
fix typo
flynnnnnnnnnn ce3840f
update docs
95a4191
Merge branch 'master' into letsencrypt
c56d4a2
let user customize directory and set email
flynnnnnnnnnn 1d0097a
Update to using named port
caa2d3a
Merge branch 'master' into letsencrypt
6bbf48c
add docs
42411f8
redirect to AppURL instead of assuming port 443
HarukaMa e5afbb9
Merge branch 'master' into letsencrypt
6fcb86b
Update IP listening on for LE
f58c5b4
Merge branch 'master' into letsencrypt
fd0103f
Merge branch 'master' into letsencrypt
techknowlogick f09fb9c
Merge branch 'master' into letsencrypt
techknowlogick 75dd8ed
dont use protocol for letsencrypt
flynnnnnnnnnn 89c5e1c
Merge branch 'master' into letsencrypt
bfe3769
resolve variable name
flynnnnnnnnnn c195fe1
Merge branch 'letsencrypt' of https://github.com/flufmonster/gitea in…
ceebba5
Merge branch 'master' into letsencrypt
techknowlogick 5c57c62
Merge branch 'master' into letsencrypt
techknowlogick 9169a46
update docs
f961204
added check for TOS acceptance
7a79c2b
update docs
60708ca
update docs
34b5519
Merge branch 'master' into letsencrypt
be6b426
fix use of variable
793c460
Merge branch 'master' into letsencrypt
techknowlogick aa80181
allow listen to other ports for redir
77a65fa
Merge branch 'master' into letsencrypt
d3cbc0c
Add log statement re: TOS
9112ba2
Merge branch 'master' into letsencrypt
9042772
Merge branch 'master' into letsencrypt
3d84f1f
Merge branch 'master' into letsencrypt
daviian File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -125,6 +125,11 @@ Values containing `#` or `;` must be quoted using `` ` `` or `"""`. | |
- `REDIRECT_OTHER_PORT`: **false**: If true and `PROTOCOL` is https, redirects http requests | ||
on another (https) port. | ||
- `PORT_TO_REDIRECT`: **80**: Port used when `REDIRECT_OTHER_PORT` is true. | ||
- `ENABLE_LETSENCRYPT`: **false**: If enabled you must set `DOMAIN` to valid internet facing domain (ensure DNS is set and port 80 is accessible by letsencrypt validation server). | ||
By using Lets Encrypt **you must consent** to their [terms of service](https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf) | ||
- `LETSENCRYPT_ACCEPTTOS`: **false**: This is an explicit check that you accept the terms of service for Let's Encrypt | ||
- `LETSENCRYPT_DIRECTORY`: **https**: Directory that Letsencrypt will use to cache information such as certs and private keys | ||
- `LETSENCRYPT_EMAIL`: **[email protected]**: Email used by Letsencrypt to notify about problems with issued certificates. (No default) | ||
|
||
## Database (`database`) | ||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,24 @@ KEY_FILE = key.pem | |
``` | ||
To learn more about the config values, please checkout the [Config Cheat Sheet](../config-cheat-sheet#server). | ||
|
||
## Using Let's Encrypt | ||
|
||
[Let's Encrypt](https://letsencrypt.org/) is a Certificate Authority that allows you to automatically request and renew SSL/TLS certificates. In addition to starting Gitea on your configured port, to request HTTPS certificates Gitea will also need to listed on port 80, and will set up an autoredirect to HTTPS for you. Let's Encrypt will need to be able to access Gitea via the Internet to verify your ownership of the domain. | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Put a note about the TOS consent here (better to over communicate) |
||
By using Lets Encrypt **you must consent** to their [terms of service](https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf) | ||
|
||
```ini | ||
[server] | ||
PROTOCOL=https | ||
DOMAIN=git.example.com | ||
ENABLE_LETSENCRYPT=true | ||
LETSENCRYPT_ACCEPTTOS=true | ||
LETSENCRYPT_DIRECTORY=https | ||
[email protected] | ||
``` | ||
|
||
To learn more about the config values, please checkout the [Config Cheat Sheet](../config-cheat-sheet#server). | ||
|
||
## Using reverse proxy | ||
|
||
Setup up your reverse proxy like shown in the [reverse proxy guide](../reverse-proxies). | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This HAS to be behind its own setting (
LETSENCRYPT_ACCEPT_TOS
) 😱 People will not read the comments...