<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                # Account and limit settings > 原文:[https://docs.gitlab.com/ee/user/admin_area/settings/account_and_limit_settings.html](https://docs.gitlab.com/ee/user/admin_area/settings/account_and_limit_settings.html) * [Max attachment size](#max-attachment-size) * [Max import size](#max-import-size) * [Maximum namespace storage size](#maximum-namespace-storage-size) * [Repository size limit](#repository-size-limit-starter-only) * [How it works](#how-it-works) * [Troubleshooting](#troubleshooting) * [413 Request Entity Too Large](#413-request-entity-too-large) * [Limiting lifetime of personal access tokens](#limiting-lifetime-of-personal-access-tokens-ultimate-only) * [Setting a limit](#setting-a-limit) * [Optional enforcement of Personal Access Token expiry](#optional-enforcement-of-personal-access-token-expiry-ultimate-only) * [Enable or disable optional enforcement of Personal Access Token expiry Feature](#enable-or-disable-optional-enforcement-of-personal-access-token-expiry-feature-core-only) * [Disabling user profile name changes](#disabling-user-profile-name-changes-premium-only) # Account and limit settings[](#account-and-limit-settings-core-only "Permalink") ## Max attachment size[](#max-attachment-size "Permalink") 您可以在 GitLab 中更改評論和回復中附件的最大文件大小. 導航至**管理區域(扳手圖標)>設置>常規** ,然后展開**帳戶和限制** . 在此處,您可以通過更改`Maximum attachment size (MB)`的值來增加或減少. **注意:**如果選擇的大小大于當前為 Web 服務器配置的大小,則可能會出現錯誤. 有關更多詳細信息,請參見[故障排除部分](#troubleshooting) . ## Max import size[](#max-import-size "Permalink") 您可以在 GitLab 中更改導入的最大文件大小. 導航至**管理區域(扳手圖標)>設置>常規** ,然后展開**帳戶和限制** . 在這里,您可以通過更改`Maximum import size (MB)`的值來增加或減少. **注意:**如果選擇的大小大于當前為 Web 服務器配置的大小,則可能會出現錯誤. 有關更多詳細信息,請參見[故障排除部分](#troubleshooting) . ## Maximum namespace storage size[](#maximum-namespace-storage-size "Permalink") 這為每個名稱空間設置了最大大小限制. 名稱空間大小包括以下內容: * repository * wiki * LFS 對象 * 建立工件 * packages **注意:**此限制當前未實施,但將在將來的版本中使用. ## Repository size limit[](#repository-size-limit-starter-only "Permalink") [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/740) in [GitLab Enterprise Edition 8.12](https://about.gitlab.com/releases/2016/09/22/gitlab-8-12-released/#limit-project-size-ee). GitLab 實例中的存儲庫可以快速增長,尤其是在使用 LFS 的情況下. 它們的大小可以成倍增長,迅速消耗可用的存儲空間. 為避免這種情況發生,您可以為存儲庫的大小設置硬限制. 可以在全局,每個組或每個項目中設置此限制,其中每個項目的限制為最高優先級. 在許多用例中,您可能會設置存儲庫大小的限制. 例如,考慮以下工作流程: 1. 您的團隊開發的應用程序需要將大文件存儲在應用程序存儲庫中. 2. 盡管您已為項目啟用了[Git LFS](../../../topics/git/lfs/index.html#git-large-file-storage-lfs) ,但您的存儲量已顯著增長. 3. 在超出可用存儲空間之前,每個存儲庫設置的最大限制為 10 GB. ### How it works[](#how-it-works "Permalink") 只有 GitLab 管理員才能設置這些限制. 將限制設置為`0`表示沒有限制. 這些設置可以在以下位置找到: * 每個項目的設置: 1. 在項目的主頁上,導航至**"設置">"常規"** . 2. 在" **命名,主題,頭像"**部分中填寫" **存儲庫大小限制(MB)"**字段. 3. 點擊**保存更改** . * 每個組的設置: 1. 在網上論壇的主頁上,導航至**設置>常規** . 2. 填寫" **命名,可見性"**部分中的" **存儲庫大小限制(MB)"**字段. 3. 點擊**保存更改** . * GitLab 的全局設置: 1. 在控制臺中,導航至**管理區域>設置>常規** . 2. 展開**帳戶和限制**部分. 3. 填寫**每個存儲庫**的**大小限制(MB)**字段. 4. 點擊**保存更改** . 包括 LFS 對象在內的新項目的第一次推送將進行大小檢查,如果它們的大小總和超過允許的最大存儲庫大小, **則將**拒絕該推送. **注意:**存儲庫大小限制包括存儲庫文件和 LFS,并且不包括工件. 有關手動清除文件的詳細信息,請參閱[使用 Git 減小存儲庫大小](../../project/repository/reducing_the_repo_size_using_git.html) . **注意:** GitLab.com 存儲庫大小[由 GitLab 設置](../../gitlab_com/index.html#repository-size-limit) . ## Troubleshooting[](#troubleshooting "Permalink") ### 413 Request Entity Too Large[](#413-request-entity-too-large "Permalink") 如果您在 GitLab 中將文件附加到評論或回復并收到`413 Request Entity Too Large`錯誤,則可能是由于[最大附件大小](#max-attachment-size)大于 Web 服務器配置允許的[最大附件大小](#max-attachment-size)引起的. 例如,如果要在 GitLab [Omnibus](https://docs.gitlab.com/omnibus/)安裝中將最大附件大小增加到 200m,則可能需要在增加最大附件大小之前`/etc/gitlab/gitlab.rb`添加到`/etc/gitlab/gitlab.rb` : ``` nginx['client_max_body_size'] = "200m" ``` ## Limiting lifetime of personal access tokens[](#limiting-lifetime-of-personal-access-tokens-ultimate-only "Permalink") [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/3649) in [GitLab Ultimate](https://about.gitlab.com/pricing/) 12.6. 用戶可以選擇指定[個人訪問令牌](../../profile/personal_access_tokens.html)的到期日期. 該到期日期不是必需的,可以將其設置為任意日期. 由于個人訪問令牌是通過編程訪問 GitLab 所需的唯一令牌,因此具有安全性要求的組織可能希望加強保護,以要求定期循環使用這些令牌. ### Setting a limit[](#setting-a-limit "Permalink") 只有 GitLab 管理員才能設置限制. 將其保留為空意味著沒有任何限制. 設置有效的個人訪問令牌限制: 1. 導航到**管理區域>設置>常規** . 2. 展開**帳戶和限制**部分. 3. Fill in the **個人訪問令牌的最大允許生命周期(天)** field. 4. Click **保存更改**. 一旦設置了個人訪問令牌的生存期,GitLab 將: * 將生存期應用于新的個人訪問令牌,并要求用戶設置到期日期,并且日期不得晚于允許的生存期. * 三個小時后,請吊銷沒有過期日期或壽命超過允許壽命的舊令牌. 允許三個小時的時間,以便管理員在撤銷之前更改或刪除允許的生存期. ## Optional enforcement of Personal Access Token expiry[](#optional-enforcement-of-personal-access-token-expiry-ultimate-only "Permalink") 版本歷史 * 在[GitLab Ultimate](https://about.gitlab.com/pricing/) 13.1 中[引入](https://gitlab.com/gitlab-org/gitlab/-/issues/214723) . * 它部署在功能標志后面,默認情況下處于禁用狀態. * 它在 GitLab.com 上被禁用. * 不建議將其用于生產. * 要在 GitLab 自管實例中使用它,請讓 GitLab 管理員[啟用它](#enable-or-disable-optional-enforcement-of-personal-access-token-expiry-feature-core-only) . GitLab 管理員可以選擇防止個人訪問令牌自動過期. 令牌將在到期日期之后可用,除非已將其明確吊銷. 去做這個: 1. 導航到**管理區域>設置>常規** . 2. 展開**帳戶和限制**部分. 3. 取消選中" **強制個人訪問令牌到期"**復選框. ### Enable or disable optional enforcement of Personal Access Token expiry Feature[](#enable-or-disable-optional-enforcement-of-personal-access-token-expiry-feature-core-only "Permalink") 正在開發可選的"強制執行個人訪問令牌到期",尚未準備好用于生產. 它部署在**默認情況下禁用**的功能標志的后面. [有權訪問 GitLab Rails 控制臺的 GitLab 管理員](../../../administration/feature_flags.html)可以從[rails 控制臺](../../../administration/feature_flags.html#start-the-gitlab-rails-console)為您的實例啟用它. 要啟用它: ``` Feature.enable(:enforce_personal_access_token_expiration) ``` 禁用它: ``` Feature.disable(:enforce_personal_access_token_expiration) ``` ## Disabling user profile name changes[](#disabling-user-profile-name-changes-premium-only "Permalink") 在 GitLab 12.7 中[引入](https://gitlab.com/gitlab-org/gitlab/-/issues/24605) . 為了維護[Audit Events](../../../administration/audit_events.html)中用戶詳細信息的完整性,GitLab 管理員可以選擇禁用用戶更改其配置文件名稱的功能. 去做這個: 1. 導航到" **管理區域">"設置">"常規"** ,然后展開" **帳戶和限制"** . 2. 選中**阻止用戶更改其個人資料名稱**復選框. **注意:**禁用此功能后,GitLab 管理員仍將能夠通過[管理界面](../index.html#administering-users)或[API](../../../api/users.html#user-modification)更新其實例中任何用戶的名稱.
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看