Repository: go-gitea/gitea
File: modules/setting/server.go (Go)

Code before:
)

// LandingPage describes the default page
type LandingPage string

// enumerates all the landing page types
const (
	LandingPageHome          LandingPage = "/"
	LandingPageExplore       LandingPage = "/explore"
	LandingPageOrganizations LandingPage = "/explore/organizations"
	LandingPageLogin         LandingPage = "/user/login"
)

const (
	PublicURLAuto   = "auto"
	PublicURLLegacy = "legacy"
)

// Server settings
var (
	// AppURL is the Application ROOT_URL. It always has a '/' suffix
	// It maps to ini:"ROOT_URL"
	AppURL string

	// PublicURLGeneration controls how to use the HTTP request headers to generate public URL
	PublicURLGeneration string

	// AppSubURL represents the sub-url mounting point for gitea, parsed from "ROOT_URL"
	// It is either "" or starts with '/' and ends without '/', such as '/{sub-path}'.
	// This value is empty if site does not have sub-url.
	AppSubURL string

	// UseSubURLPath makes Gitea handle requests with sub-path like "/sub-path/owner/repo/...",
	// to make it easier to debug sub-path related problems without a reverse proxy.
	UseSubURLPath bool

	// AppDataPath is the default path for storing data.
	// It maps to ini:"APP_DATA_PATH" in [server] and defaults to AppWorkPath + "/data"
	AppDataPath string

	// LocalURL is the url for locally running applications to contact Gitea. It always has a '/' suffix
	// It maps to ini:"LOCAL_ROOT_URL" in [server]
	LocalURL string

	// AssetVersion holds an opaque value that is used for cache-busting assets
	AssetVersion string

	// appTempPathInternal is the temporary path for the app, it is only an internal variable
	// DO NOT use it directly, always use AppDataTempDir
	appTempPathInternal string


Review comment (suggestion):
```suggestion
	// PublicURLDetection controls how to use the HTTP request headers to detect public URL
	PublicURLDetection string
```

Code after:
)

// LandingPage describes the default page
type LandingPage string

// enumerates all the landing page types
const (
	LandingPageHome          LandingPage = "/"
	LandingPageExplore       LandingPage = "/explore"
	LandingPageOrganizations LandingPage = "/explore/organizations"
	LandingPageLogin         LandingPage = "/user/login"
)

const (
	PublicURLAuto   = "auto"
	PublicURLLegacy = "legacy"
)

// Server settings
var (
	// AppURL is the Application ROOT_URL. It always has a '/' suffix
	// It maps to ini:"ROOT_URL"
	AppURL string

	// PublicURLDetection controls how to use the HTTP request headers to detect public URL
	PublicURLDetection string

	// AppSubURL represents the sub-url mounting point for gitea, parsed from "ROOT_URL"
	// It is either "" or starts with '/' and ends without '/', such as '/{sub-path}'.
	// This value is empty if site does not have sub-url.
	AppSubURL string

	// UseSubURLPath makes Gitea handle requests with sub-path like "/sub-path/owner/repo/...",
	// to make it easier to debug sub-path related problems without a reverse proxy.
	UseSubURLPath bool

	// AppDataPath is the default path for storing data.
	// It maps to ini:"APP_DATA_PATH" in [server] and defaults to AppWorkPath + "/data"
	AppDataPath string

	// LocalURL is the url for locally running applications to contact Gitea. It always has a '/' suffix
	// It maps to ini:"LOCAL_ROOT_URL" in [server]
	LocalURL string

	// AssetVersion holds an opaque value that is used for cache-busting assets
	AssetVersion string

	// appTempPathInternal is the temporary path for the app, it is only an internal variable
	// DO NOT use it directly, always use AppDataTempDir
	appTempPathInternal string