[PR #4412] [CLOSED] Add InternalTokenURI to load/save InteralToken from an external file. #17363

Closed
opened 2025-11-02 12:57:14 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/4412
Author: @bkcsoft
Created: 7/10/2018
Status: Closed

Base: masterHead: remote-internal-token


📝 Commits (3)

  • 4cec5ff Add InternalTokenURI to load/save InteralToken
  • 423d98a Update app.ini.sample. Fix improper error message
  • 311bd6e Don't fallback to INTERNAL_TOKEN. Make load-function nicer

📊 Changes

2 files changed (+76 additions, -25 deletions)

View changed files

📝 custom/conf/app.ini.sample (+4 -0)
📝 modules/setting/setting.go (+72 -25)

📄 Description

  • URI HAVE TO start with 'file:' or 'file://'. Possibility to add http/s3
    support in the future.
  • On errors it WILL fail hard (in case of misconfiguration OR the storage not being available)
  • The file WILL be read if it exists and the token extracted from it.
  • The file WILL be created if it does not exist.

Closes #3246


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/4412 **Author:** [@bkcsoft](https://github.com/bkcsoft) **Created:** 7/10/2018 **Status:** ❌ Closed **Base:** `master` ← **Head:** `remote-internal-token` --- ### 📝 Commits (3) - [`4cec5ff`](https://github.com/go-gitea/gitea/commit/4cec5ff078f32dd50f78177875f8fa66a79dff73) Add InternalTokenURI to load/save InteralToken - [`423d98a`](https://github.com/go-gitea/gitea/commit/423d98a77f9ccb286e1eeacf0acf2c53d77bd820) Update app.ini.sample. Fix improper error message - [`311bd6e`](https://github.com/go-gitea/gitea/commit/311bd6e716b735808c7d25385927e903b55c0461) Don't fallback to INTERNAL_TOKEN. Make load-function nicer ### 📊 Changes **2 files changed** (+76 additions, -25 deletions) <details> <summary>View changed files</summary> 📝 `custom/conf/app.ini.sample` (+4 -0) 📝 `modules/setting/setting.go` (+72 -25) </details> ### 📄 Description - URI HAVE TO start with 'file:' or 'file://'. Possibility to add http/s3 support in the future. - On errors it WILL fail hard (in case of misconfiguration OR the storage not being available) - The file WILL be read if it exists and the token extracted from it. - The file WILL be created if it does not exist. Closes #3246 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 12:57:14 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#17363