-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finish writing configuration reference
- Loading branch information
1 parent
71c58fc
commit 445c918
Showing
6 changed files
with
180 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,70 @@ | ||
# Basic Example Configuration | ||
|
||
````yaml | ||
Serilog: | ||
Using: [ "Serilog.Sinks.Console" ] | ||
MinimumLevel: | ||
Default: "Information" | ||
Override: | ||
SS14: "Information" | ||
Microsoft: "Warning" | ||
Microsoft.Hosting.Lifetime: "Information" | ||
Microsoft.AspNetCore: "Warning" | ||
#This service doesn't use data protection | ||
Microsoft.AspNetCore.DataProtection: "Error" | ||
#Ignore api key spam | ||
SS14.MapServer.Security.ApiKeyHandler: "Error" | ||
|
||
WriteTo: | ||
- Name: Console | ||
Args: | ||
OutputTemplate: "[{Timestamp:HH:mm:ss} {Level:u3} {SourceContext}] {Message:lj}{NewLine}{Exception}" | ||
|
||
Enrich: [ "FromLogContext" ] | ||
|
||
AllowedHosts: "*" | ||
|
||
Auth: | ||
ApiKey: "debug" | ||
ApiKey: "<api key>" | ||
|
||
Processing: | ||
TargetDirectory: "/tmp/mapstest/build" | ||
DirectoryPoolMaxSize: 3 | ||
Git: | ||
RepositoryUrl: "<repository url>" | ||
Branch: "master" | ||
# Exclude maps that generally break the map renderer, | ||
# like planet maps or you just don't want rendered | ||
mapFileExcludePatterns: | ||
- "europa.yml" | ||
|
||
Github: | ||
AppName: "SS14.MapServer" | ||
TemplateLocation: "Resources/Templates" | ||
AppName: "<github app name>" | ||
AppId: <app id> | ||
AppPrivateKeyLocation: "private-key.pem" | ||
AppWebhookSecret: "<secret>" | ||
|
||
ConnectionStrings: | ||
default: "Server=map_database;Port=5432;Database=postgres;User Id=postgres;Password=<password>;" | ||
|
||
Server: | ||
CorsOrigins: | ||
- "http://localhost:5173" | ||
Language: "en-US" | ||
CorsOrigins: | ||
- "<map server host>" | ||
- "127.0.0.1" | ||
Host: "<host>" | ||
EnableSentry: true | ||
EnableSentryTracing: true | ||
|
||
Git: | ||
Branch: "master" | ||
# The sentry integration is entirely optional | ||
Sentry: | ||
Dsn: "<sentry dsn>" | ||
EnableTracing: true | ||
MaxRequestBodySize: "Always" | ||
ServerName: "Live server" | ||
# Ensure to keep this too false to prevent GDPR issues | ||
SendDefaultPii: false | ||
MinimumBreadcrumbLevel: "Warning" | ||
MinimumEventLevel: "Error" | ||
AttachStackTrace: true | ||
DiagnosticsLevel: "Error" | ||
|
||
Build: | ||
MapRendererCommand: "Content.MapRenderer" | ||
```` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,43 @@ | ||
# Github Configuration | ||
# GitHub Configuration | ||
|
||
Description | ||
The GitHub configuration section contains settings required to set up integration with GitHub. | ||
|
||
````yaml | ||
yaml: | ||
[[[Enabled|#enabled]]]: [true|false] | ||
[[[AppName|#appname]]]: <string> | ||
[[[AppPrivateKeyLocation|#appprivatekeylocation]]]: <string> | ||
[[[AppId|#appid]]]: <int> | ||
[[[TemplateLocation|#templatelocation]]]: <string> | ||
```` | ||
|
||
## Configuration Options | ||
### Enabled | ||
`[true|false] default=true` | ||
|
||
description | ||
Enables GitHub integration. If this is set to false Posting on PRs and checking changed files doesn't work. | ||
Setting this to disabled requires GitHub Webhooks to be set up if you still want automatic map rendering. | ||
|
||
### AppName | ||
`<string>` | ||
|
||
The name of the GitHub app. | ||
|
||
### AppPrivateKeyLocation | ||
`<string>` | ||
|
||
The path to the private key file created when setting up the GitHubApp- | ||
|
||
### AppId | ||
`<int>` | ||
|
||
The app id of the GitHub app | ||
|
||
### TemplateLocation | ||
`<string>` | ||
|
||
The location of liquid templates used for GitHub PR comments. | ||
|
||
<seealso> | ||
<!--Provide links to related how-to guides, overviews, and tutorials.--> | ||
</seealso> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters