diff --git a/README_EN.md b/README.en.md similarity index 98% rename from README_EN.md rename to README.en.md index 0bb4c8c8c..5ed867465 100644 --- a/README_EN.md +++ b/README.en.md @@ -15,7 +15,7 @@ GZ::CTF is an open source CTF platform based on ASP.NET Core. > [!IMPORTANT] -> **To save your effort, please read the documentation carefully before using: [https://docs.ctf.gzti.me/](https://docs.ctf.gzti.me/)** +> **To save your effort, please read the documentation carefully before using: [https://docs.ctf.gzti.me/en](https://docs.ctf.gzti.me/en)** > [!WARNING] > Since 01/01/2024, the database structure of the `develop` image is no longer compatible with previous versions. If you prefer to use it, please go to `v0.17`. diff --git a/docs/next.config.js b/docs/next.config.js index 51877c472..9e9412c40 100644 --- a/docs/next.config.js +++ b/docs/next.config.js @@ -7,7 +7,7 @@ const withNextra = require("nextra")({ module.exports = withNextra({ reactStrictMode: true, i18n: { - locales: ["zh", "ja"], + locales: ["zh", "en", "ja"], defaultLocale: "zh", localeDetection: false, }, diff --git a/docs/pages/config/appsettings.en.mdx b/docs/pages/config/appsettings.en.mdx index 27243cb4d..32371a49f 100644 --- a/docs/pages/config/appsettings.en.mdx +++ b/docs/pages/config/appsettings.en.mdx @@ -227,7 +227,7 @@ Configure the Google Recaptcha v3 related information, optional. Here we can configure the reverse proxy, which is used to get the real IP address, optional. -- **ForwardedHeaders:** Enum for ForwardedHeaders in reverse proxy, please use `5` as the default value. For more details, see [ForwardedHeaders Enum](https://learn.microsoft.com/zh-cn/dotnet/api/microsoft.aspnetcore.httpoverrides.forwardedheaders?view=aspnetcore-7.0) +- **ForwardedHeaders:** Enum for ForwardedHeaders in reverse proxy, please use `5` as the default value. For more details, see [ForwardedHeaders Enum](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.httpoverrides.forwardedheaders) - **ForwardLimit:** Limit the number of proxy hops allowed, the default is `1` - **ForwardedForHeaderName:** The name of the reverse proxy IP address header - **TrustedNetworks:** List of trusted networks for reverse proxy, represented by CIDR. @@ -239,10 +239,10 @@ If you want to ignore the trust list of reverse proxies and allow any IP address -For other fields, please refer to the official documentation: [Configure ASP.NET Core to work with proxy servers and load balancers](https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/proxy-load-balancer?view=aspnetcore-7.0) and [ForwardedHeadersOptions class](https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.builder.forwardedheadersoptions?view=aspnetcore-7.0) +For other fields, please refer to the official documentation: [Configure ASP.NET Core to work with proxy servers and load balancers](https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/proxy-load-balancer) and [ForwardedHeadersOptions class](https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.builder.forwardedheadersoptions) ### Kestrel Kestrel is the built-in web server used by GZCTF. With this configuration, you can control the behavior of Kestrel, such as specifying the HTTP protocol, modifying the request size limit, and more. -For specific configurable fields, please refer to the properties of the `KestrelServerOptions` class in the official documentation: [KestrelServerOptions class](https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.server.kestrel.core.kestrelserveroptions?view=aspnetcore-7.0) +For specific configurable fields, please refer to the properties of the `KestrelServerOptions` class in the official documentation: [KestrelServerOptions class](https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.server.kestrel.core.kestrelserveroptions) diff --git a/docs/pages/deployment/docker-k8s.ja.mdx b/docs/pages/deployment/docker-k8s.ja.mdx index 2cc849689..1b6db03e9 100644 --- a/docs/pages/deployment/docker-k8s.ja.mdx +++ b/docs/pages/deployment/docker-k8s.ja.mdx @@ -16,7 +16,7 @@ import { Callout } from "nextra-theme-docs"; ## k3sのインストール -k3sは軽量なk8sディストリビューションで、シングルマシンやマルチマシン上でk8sクラスタを迅速にデプロイすることができます。公式ドキュメントのURL:[https://docs.k3s.io/zh](https://docs.k3s.io/zh) +k3sは軽量なk8sディストリビューションで、シングルマシンやマルチマシン上でk8sクラスタを迅速にデプロイすることができます。公式ドキュメントのURL:[https://docs.k3s.io](https://docs.k3s.io) @@ -54,7 +54,7 @@ curl -sfL https://rancher-mirror.rancher.cn/k3s/k3s-install.sh | INSTALL_K3S_MIR -マルチマシンのインストールとクラスタの構築については、[公式ドキュメント](https://docs.k3s.io/zh/quick-start)を参照してください。 +マルチマシンのインストールとクラスタの構築については、[公式ドキュメント](https://docs.k3s.io/quick-start)を参照してください。 ## GZCTFの設定