-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Add InternalTokenURI to load/save InteralToken from an external file. #4412
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
Conversation
... from an external file. - URI HAVE TO start with 'file:' or 'file://'. Possibility to add http/s3 support in the future. - On errors it WILL ALWAYS fall back to reading AND WRITING InternalToken to the config file! - The File HAVE TO exist to be used. Gitea WILL NOT create it for you. It can however be empty and a new token will be generated for you.
Do we deprecate |
Codecov Report
@@ Coverage Diff @@
## master #4412 +/- ##
=======================================
Coverage 20.06% 20.06%
=======================================
Files 153 153
Lines 30769 30769
=======================================
Hits 6174 6174
Misses 23652 23652
Partials 943 943 Continue to review full report at Codecov.
|
I'm also thinking about doing the same for |
@bkc I think it should always use |
default: | ||
log.Fatal(4, "Unsupported URI-Scheme %q (INTERNAL_TOKEN_URL = %q)", tempURI.Scheme, uri) | ||
} | ||
} |
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.
My linter complains about a missing return even though we default to log.Fatal
(which should be equivalent to os.Exit()
...)
@bkcsoft it would be better to change return type to |
Not working on this anymore, feel free to continue it if anyone wants to. |
support in the future.
Closes #3246