You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<scriptid="__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>
<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>
1051
1031
<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>
1052
1032
<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>
1053
1035
<li><strong><code>GT_MONGODB_CONNECTION</code></strong> (<strong>required</strong>): MongoDB connection string. Follow the <ahref="https://www.mongodb.com/docs/manual/reference/connection-string/">MongoDB documentation</a> to construct this string.</li>
<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>
<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>
1162
1152
<li><strong><code>GT_DISCORD_BOT_ACCOUNT_CONNECTIONS_CHANNEL</code></strong>: Specifies the Discord channel ID where new account connection notifications are sent. </li>
1163
1153
<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>
<scriptid="__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>
@@ -1050,7 +1050,7 @@ <h2 id="license">License<a class="headerlink" href="#license" title="Permanent l
1050
1050
<scriptid="__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>
<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>
<p><strong>Error message</strong>: <code>The database is not connected. Please try again later!</code></p>
1052
1026
<p><strong>Cause</strong>: This error indicates that the API could not establish a connection to the database.</p>
1053
1027
<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 <ahref="https://globaltags.xyz/discord" target="_blank">Discord Server</a>.</p>
<p><strong>Error message</strong>: <code>An unknown error ocurred! Please try again later</code></p>
1057
1031
<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>
1058
1032
<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>
<scriptid="__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>
<scriptid="__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>
0 commit comments