Skip to content

Commit b3bbada

Browse files
author
committed
Deployed 861e551 with MkDocs version: 1.6.1
1 parent c9f0056 commit b3bbada

File tree

16 files changed

+118
-118
lines changed

16 files changed

+118
-118
lines changed

404.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313

1414
<link rel="icon" href="/assets/theme/images/icon.png">
15-
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.5.48">
15+
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.5.49">
1616

1717

1818

@@ -685,7 +685,7 @@ <h1>404 - Not found</h1>
685685
<script id="__config" type="application/json">{"base": "/", "features": ["content.action.edit", "content.code.annotate", "content.code.copy", "content.tabs.link", "navigation.expand", "navigation.footer", "search.share"], "search": "/assets/javascripts/workers/search.6ce7567c.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
686686

687687

688-
<script src="/assets/javascripts/bundle.83f73b43.min.js"></script>
688+
<script src="/assets/javascripts/bundle.88dd0f4e.min.js"></script>
689689

690690

691691
</body>

api/configuration-guide/index.html

Lines changed: 32 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717

1818
<link rel="icon" href="../../assets/theme/images/icon.png">
19-
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.5.48">
19+
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.5.49">
2020

2121

2222

@@ -567,15 +567,6 @@
567567
</span>
568568
</a>
569569

570-
</li>
571-
572-
<li class="md-nav__item">
573-
<a href="#rolesjson" class="md-nav__link">
574-
<span class="md-ellipsis">
575-
roles.json
576-
</span>
577-
</a>
578-
579570
</li>
580571

581572
<li class="md-nav__item">
@@ -609,6 +600,15 @@
609600
</span>
610601
</a>
611602

603+
</li>
604+
605+
<li class="md-nav__item">
606+
<a href="#proxy-settings" class="md-nav__link">
607+
<span class="md-ellipsis">
608+
Proxy Settings
609+
</span>
610+
</a>
611+
612612
</li>
613613

614614
<li class="md-nav__item">
@@ -860,15 +860,6 @@
860860
</span>
861861
</a>
862862

863-
</li>
864-
865-
<li class="md-nav__item">
866-
<a href="#rolesjson" class="md-nav__link">
867-
<span class="md-ellipsis">
868-
roles.json
869-
</span>
870-
</a>
871-
872863
</li>
873864

874865
<li class="md-nav__item">
@@ -902,6 +893,15 @@
902893
</span>
903894
</a>
904895

896+
</li>
897+
898+
<li class="md-nav__item">
899+
<a href="#proxy-settings" class="md-nav__link">
900+
<span class="md-ellipsis">
901+
Proxy Settings
902+
</span>
903+
</a>
904+
905905
</li>
906906

907907
<li class="md-nav__item">
@@ -1014,25 +1014,6 @@ <h3 id="ratelimiterjson"><code>ratelimiter.json</code><a class="headerlink" href
10141014
<li><strong><code>seconds</code></strong>: The duration of the time window in seconds.</li>
10151015
</ul>
10161016
<hr />
1017-
<h3 id="rolesjson"><code>roles.json</code><a class="headerlink" href="#rolesjson" title="Permanent link">&para;</a></h3>
1018-
<p>This file lists all available roles for the system.</p>
1019-
<ul>
1020-
<li><strong><code>name</code></strong>: Specifies the name of the role.</li>
1021-
<li><strong><code>permissions</code></strong>: A string array in PascalCase format, listing all the permissions assigned to the role.
1022-
Those are all valid permissions:<ul>
1023-
<li><code>BypassValidation</code></li>
1024-
<li><code>CustomIcon</code></li>
1025-
<li><code>ManageBans</code></li>
1026-
<li><code>ManageNotes</code></li>
1027-
<li><code>ManageSubscriptions</code></li>
1028-
<li><code>ManageRoles</code></li>
1029-
<li><code>ManageTags</code></li>
1030-
<li><code>ManageWatchlist</code></li>
1031-
<li><code>ReportImmunity</code></li>
1032-
</ul>
1033-
</li>
1034-
</ul>
1035-
<hr />
10361017
<h3 id="skusjson"><code>skus.json</code><a class="headerlink" href="#skusjson" title="Permanent link">&para;</a></h3>
10371018
<p>Lists all obtainable entitlement SKUs for subscription management.</p>
10381019
<ul>
@@ -1047,12 +1028,19 @@ <h2 id="environment-variables">Environment Variables<a class="headerlink" href="
10471028
<h3 id="general-configuration">General Configuration<a class="headerlink" href="#general-configuration" title="Permanent link">&para;</a></h3>
10481029
<ul>
10491030
<li><strong><code>GT_PORT</code></strong>: Specifies the port on which the API runs.</li>
1050-
<li><strong><code>GT_PROXY_IP_HEADER</code></strong>: The header name that may contain the client’s real IP address when behind a proxy.</li>
10511031
<li><strong><code>GT_STRICT_AUTH</code></strong>: Boolean that determines if unauthenticated requests are allowed on the <code>/players/:uuid</code> route. Set to <code>true</code> to require valid authorization for all requests.</li>
10521032
<li><strong><code>GT_LOG_LEVEL</code></strong>: Specifies the level of logging detail. Valid values: <code>Error</code>, <code>Warn</code>, <code>Info</code>, <code>Debug</code>.</li>
1033+
<li><strong><code>GT_BASE_URL</code></strong>: Defines the root URL of the API, excluding any trailing slashes. This is the URL where the API can be accessed and should be consistent with your deployment setup.</li>
1034+
<li><strong><code>GT_ICON_URL</code></strong>: Provides a URL template for accessing role icons. The <code>{role}</code> placeholder in the template will be dynamically replaced with the role name.</li>
10531035
<li><strong><code>GT_MONGODB_CONNECTION</code></strong> (<strong>required</strong>): MongoDB connection string. Follow the <a href="https://www.mongodb.com/docs/manual/reference/connection-string/">MongoDB documentation</a> to construct this string.</li>
10541036
</ul>
10551037
<hr />
1038+
<h3 id="proxy-settings">Proxy Settings<a class="headerlink" href="#proxy-settings" title="Permanent link">&para;</a></h3>
1039+
<ul>
1040+
<li><strong><code>GT_PROXY_ENABLED</code></strong>: Boolean that determines if the API should operate behind a proxy. Set to <code>true</code> to enable trusting a header for real client IPs.</li>
1041+
<li><strong><code>GT_PROXY_IP_HEADER</code></strong>: The name of the HTTP header that contains the real client IP address when the API is behind a proxy. Common values include <code>x-forwarded-for</code> or <code>cf-connecting-ip</code>. Defaults to <code>x-real-ip</code>.</li>
1042+
</ul>
1043+
<hr />
10561044
<h3 id="tag-validation-settings">Tag Validation Settings<a class="headerlink" href="#tag-validation-settings" title="Permanent link">&para;</a></h3>
10571045
<ul>
10581046
<li><strong><code>GT_VALIDATION_TAG_MIN_LENGTH</code></strong>: Minimum character length for tags.</li>
@@ -1062,6 +1050,7 @@ <h3 id="tag-validation-settings">Tag Validation Settings<a class="headerlink" hr
10621050
<li><strong><code>GT_VALIDATION_ICON_MAX_RESOLUTION</code></strong>: Maximum resolution (e.g., <code>512</code> for 512x512) for custom icons.</li>
10631051
<li><strong><code>GT_VALIDATION_ICON_BLACKLIST</code></strong>: Array of disallowed default icons.</li>
10641052
<li><strong><code>GT_VALIDATION_NOTES_MAX_LENGTH</code></strong>: Maximum character length for staff notes.</li>
1053+
<li><strong><code>GT_VALIDATION_ROLE_NAME_MAX_LENGTH</code></strong>: Maximum character length for role names.</li>
10651054
</ul>
10661055
<hr />
10671056
<h3 id="github-configuration">GitHub Configuration<a class="headerlink" href="#github-configuration" title="Permanent link">&para;</a></h3>
@@ -1104,13 +1093,13 @@ <h3 id="discord-bot-configuration">Discord Bot Configuration<a class="headerlink
11041093
<ul>
11051094
<li><strong><code>GT_DISCORD_BOT_ENABLED</code></strong>: Enables or disables the Discord bot.</li>
11061095
<li><strong><code>GT_DISCORD_BOT_TOKEN</code></strong>: Token used for bot authentication.</li>
1096+
<li><strong><code>GT_DISCORD_BOT_SERVER</code></strong>: ID of the main Discord guild for various feature including role synchronization.</li>
11071097
</ul>
11081098
</li>
11091099
<li>
11101100
<p><strong>Role Synchronization</strong></p>
11111101
<ul>
11121102
<li><strong><code>GT_DISCORD_BOT_SYNCED_ROLES_ENABLED</code></strong>: Enables role synchronization between GlobalTags and Discord.</li>
1113-
<li><strong><code>GT_DISCORD_BOT_SYNCED_ROLES_GUILD</code></strong>: ID of the Discord guild for role synchronization.</li>
11141103
<li><strong><code>GT_DISCORD_BOT_SYNCED_ROLES_{ROLE}</code></strong>: Maps GlobalTags roles to Discord role IDs. Example:
11151104
<div class="highlight"><pre><span></span><code>GT_DISCORD_BOT_SYNCED_ROLES_ADMIN=123456,987654
11161105
</code></pre></div></li>
@@ -1159,6 +1148,7 @@ <h3 id="discord-bot-configuration">Discord Bot Configuration<a class="headerlink
11591148
<p><strong>Account connections</strong>:</p>
11601149
<ul>
11611150
<li><strong><code>GT_DISCORD_BOT_ACCOUNT_CONNECTIONS_ENABLED</code></strong>: Enables or disables the ability for users to link their Discord account (via <code>/gt link discord</code> in-game or <code>/link</code> on Discord). </li>
1151+
<li><strong><code>GT_DISCORD_BOT_ACCOUNT_CONNECTIONS_HIDE_EMAILS</code></strong>: Enables or disables if emails should be redacted in the log or not.</li>
11621152
<li><strong><code>GT_DISCORD_BOT_ACCOUNT_CONNECTIONS_CHANNEL</code></strong>: Specifies the Discord channel ID where new account connection notifications are sent. </li>
11631153
<li><strong><code>GT_DISCORD_BOT_ACCOUNT_CONNECTIONS_ROLE</code></strong>: Defines the ID of a Discord role treated as a "Verified" role for linked accounts.</li>
11641154
</ul>
@@ -1202,7 +1192,7 @@ <h3 id="discord-bot-configuration">Discord Bot Configuration<a class="headerlink
12021192
<span class="md-icon" title="Last update">
12031193
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
12041194
</span>
1205-
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">December 15, 2024</span>
1195+
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">January 9, 2025</span>
12061196
</span>
12071197

12081198

@@ -1341,7 +1331,7 @@ <h3 id="discord-bot-configuration">Discord Bot Configuration<a class="headerlink
13411331
<script id="__config" type="application/json">{"base": "../..", "features": ["content.action.edit", "content.code.annotate", "content.code.copy", "content.tabs.link", "navigation.expand", "navigation.footer", "search.share"], "search": "../../assets/javascripts/workers/search.6ce7567c.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
13421332

13431333

1344-
<script src="../../assets/javascripts/bundle.83f73b43.min.js"></script>
1334+
<script src="../../assets/javascripts/bundle.88dd0f4e.min.js"></script>
13451335

13461336

13471337
</body>

api/custom-auth-provider/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717

1818
<link rel="icon" href="../../assets/theme/images/icon.png">
19-
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.5.48">
19+
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.5.49">
2020

2121

2222

@@ -1050,7 +1050,7 @@ <h2 id="license">License<a class="headerlink" href="#license" title="Permanent l
10501050
<script id="__config" type="application/json">{"base": "../..", "features": ["content.action.edit", "content.code.annotate", "content.code.copy", "content.tabs.link", "navigation.expand", "navigation.footer", "search.share"], "search": "../../assets/javascripts/workers/search.6ce7567c.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
10511051

10521052

1053-
<script src="../../assets/javascripts/bundle.83f73b43.min.js"></script>
1053+
<script src="../../assets/javascripts/bundle.88dd0f4e.min.js"></script>
10541054

10551055

10561056
</body>

api/guide/index.html

Lines changed: 13 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717

1818
<link rel="icon" href="../../assets/theme/images/icon.png">
19-
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.5.48">
19+
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.5.49">
2020

2121

2222

@@ -597,27 +597,18 @@
597597
<ul class="md-nav__list">
598598

599599
<li class="md-nav__item">
600-
<a href="#1-malformed-authorization-header" class="md-nav__link">
600+
<a href="#1-database-connection-issue" class="md-nav__link">
601601
<span class="md-ellipsis">
602-
1. Malformed authorization header
602+
1. Database Connection Issue
603603
</span>
604604
</a>
605605

606606
</li>
607607

608608
<li class="md-nav__item">
609-
<a href="#2-database-connection-issue" class="md-nav__link">
609+
<a href="#2-unknown-error" class="md-nav__link">
610610
<span class="md-ellipsis">
611-
2. Database Connection Issue
612-
</span>
613-
</a>
614-
615-
</li>
616-
617-
<li class="md-nav__item">
618-
<a href="#3-unknown-error" class="md-nav__link">
619-
<span class="md-ellipsis">
620-
3. Unknown Error
611+
2. Unknown Error
621612
</span>
622613
</a>
623614

@@ -932,27 +923,18 @@
932923
<ul class="md-nav__list">
933924

934925
<li class="md-nav__item">
935-
<a href="#1-malformed-authorization-header" class="md-nav__link">
936-
<span class="md-ellipsis">
937-
1. Malformed authorization header
938-
</span>
939-
</a>
940-
941-
</li>
942-
943-
<li class="md-nav__item">
944-
<a href="#2-database-connection-issue" class="md-nav__link">
926+
<a href="#1-database-connection-issue" class="md-nav__link">
945927
<span class="md-ellipsis">
946-
2. Database Connection Issue
928+
1. Database Connection Issue
947929
</span>
948930
</a>
949931

950932
</li>
951933

952934
<li class="md-nav__item">
953-
<a href="#3-unknown-error" class="md-nav__link">
935+
<a href="#2-unknown-error" class="md-nav__link">
954936
<span class="md-ellipsis">
955-
3. Unknown Error
937+
2. Unknown Error
956938
</span>
957939
</a>
958940

@@ -1039,20 +1021,12 @@ <h3 id="accessing-role-icons">Accessing Role Icons<a class="headerlink" href="#a
10391021
<div class="highlight"><pre><span></span><code>https://cdn.rappytv.com/globaltags/icons/role/&lt;name&gt;.png
10401022
</code></pre></div></p>
10411023
<h2 id="troubleshooting">Troubleshooting<a class="headerlink" href="#troubleshooting" title="Permanent link">&para;</a></h2>
1042-
<h3 id="1-malformed-authorization-header">1. <strong>Malformed authorization header</strong><a class="headerlink" href="#1-malformed-authorization-header" title="Permanent link">&para;</a></h3>
1043-
<p><strong>Error message</strong>: <code>You've entered a malformed authorization header!</code></p>
1044-
<p><strong>Cause</strong>: This error occurs when you either omit the <code>Authorization</code> header for a protected route or provide an invalid auth provider <code>id</code> that doesn't match any registered providers.</p>
1045-
<p><strong>Solution</strong>: Ensure that the <code>Authorization</code> header follows the correct format:</p>
1046-
<p><div class="highlight"><pre><span></span><code>Authorization: &lt;auth provider id&gt; &lt;token&gt;
1047-
</code></pre></div>
1048-
Verify that the auth provider <code>id</code> is valid and corresponds to a registered provider.</p>
1049-
<hr />
1050-
<h3 id="2-database-connection-issue">2. <strong>Database Connection Issue</strong><a class="headerlink" href="#2-database-connection-issue" title="Permanent link">&para;</a></h3>
1024+
<h3 id="1-database-connection-issue">1. <strong>Database Connection Issue</strong><a class="headerlink" href="#1-database-connection-issue" title="Permanent link">&para;</a></h3>
10511025
<p><strong>Error message</strong>: <code>The database is not connected. Please try again later!</code></p>
10521026
<p><strong>Cause</strong>: This error indicates that the API could not establish a connection to the database.</p>
10531027
<p><strong>Solution</strong>: Wait for a few minutes, as this issue is often temporary. If the problem persists for more than 5 minutes, please report it to our team through our <a href="https://globaltags.xyz/discord" target="_blank">Discord Server</a>.</p>
10541028
<hr />
1055-
<h3 id="3-unknown-error">3. <strong>Unknown Error</strong><a class="headerlink" href="#3-unknown-error" title="Permanent link">&para;</a></h3>
1029+
<h3 id="2-unknown-error">2. <strong>Unknown Error</strong><a class="headerlink" href="#2-unknown-error" title="Permanent link">&para;</a></h3>
10561030
<p><strong>Error message</strong>: <code>An unknown error ocurred! Please try again later</code></p>
10571031
<p><strong>Cause</strong>: This error occurs due to an internal issue while processing your request. The system returns a generic error message to avoid exposing sensitive information.</p>
10581032
<p><strong>Solution</strong>: Be patient, as resubmitting the request likely won't fix the issue. However, the development team will be automatically notified, and we will work on resolving it. If the error resolves itself, feel free to continue.</p>
@@ -1078,7 +1052,7 @@ <h3 id="3-unknown-error">3. <strong>Unknown Error</strong><a class="headerlink"
10781052
<span class="md-icon" title="Last update">
10791053
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
10801054
</span>
1081-
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">October 14, 2024</span>
1055+
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">January 9, 2025</span>
10821056
</span>
10831057

10841058

@@ -1217,7 +1191,7 @@ <h3 id="3-unknown-error">3. <strong>Unknown Error</strong><a class="headerlink"
12171191
<script id="__config" type="application/json">{"base": "../..", "features": ["content.action.edit", "content.code.annotate", "content.code.copy", "content.tabs.link", "navigation.expand", "navigation.footer", "search.share"], "search": "../../assets/javascripts/workers/search.6ce7567c.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
12181192

12191193

1220-
<script src="../../assets/javascripts/bundle.83f73b43.min.js"></script>
1194+
<script src="../../assets/javascripts/bundle.88dd0f4e.min.js"></script>
12211195

12221196

12231197
</body>

api/self-hosting/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717

1818
<link rel="icon" href="../../assets/theme/images/icon.png">
19-
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.5.48">
19+
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.5.49">
2020

2121

2222

@@ -1054,7 +1054,7 @@ <h3 id="2-launching-the-api">2. Launching the API<a class="headerlink" href="#2-
10541054
<script id="__config" type="application/json">{"base": "../..", "features": ["content.action.edit", "content.code.annotate", "content.code.copy", "content.tabs.link", "navigation.expand", "navigation.footer", "search.share"], "search": "../../assets/javascripts/workers/search.6ce7567c.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
10551055

10561056

1057-
<script src="../../assets/javascripts/bundle.83f73b43.min.js"></script>
1057+
<script src="../../assets/javascripts/bundle.88dd0f4e.min.js"></script>
10581058

10591059

10601060
</body>

0 commit comments

Comments
 (0)