Skip to content

Commit

Permalink
i18n: various fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hez2010 committed Jan 28, 2024
1 parent 537e0e7 commit ab5cd5c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README_EN.md → README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
2 changes: 1 addition & 1 deletion docs/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down
6 changes: 3 additions & 3 deletions docs/pages/config/appsettings.en.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -239,10 +239,10 @@ If you want to ignore the trust list of reverse proxies and allow any IP address

</Callout>

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)
4 changes: 2 additions & 2 deletions docs/pages/deployment/docker-k8s.ja.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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)

<Callout type="info">

Expand Down Expand Up @@ -54,7 +54,7 @@ curl -sfL https://rancher-mirror.rancher.cn/k3s/k3s-install.sh | INSTALL_K3S_MIR

</Callout>

マルチマシンのインストールとクラスタの構築については、[公式ドキュメント](https://docs.k3s.io/zh/quick-start)を参照してください。
マルチマシンのインストールとクラスタの構築については、[公式ドキュメント](https://docs.k3s.io/quick-start)を参照してください。

## GZCTFの設定

Expand Down

0 comments on commit ab5cd5c

Please sign in to comment.