-
-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathapplication.yml
More file actions
188 lines (185 loc) · 7.75 KB
/
application.yml
File metadata and controls
188 lines (185 loc) · 7.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
faf-api:
version: #faf-api.version#
avatar:
max-size-bytes: ${AVATAR_MAX_SIZE_BYTES:4096}
image-width: ${AVATAR_IMAGE_WIDTH:40}
image-height: ${AVATAR_IMAGE_HEIGHT:20}
download-url-format: ${AVATAR_DOWNLOAD_URL_FORMAT:https://content.${FAF_DOMAIN}/faf/avatars/%s}
target-directory: ${AVATAR_TARGET_DIRECTORY:/content/avatars}
allowed-extensions: ${AVATAR_ALLOWED_FILE_EXTENSIONS:png}
challonge:
key: ${CHALLONGE_KEY:}
clan:
invite-link-expire-duration-minutes: ${CLAN_INVITE_LINK_EXPIRE_DURATION_MINUTES:604800}
website-url-format: ${CLAN_WEBSITE_URL_FORMAT:https://clans.${FAF_DOMAIN}/clan/%s}
cloudflare:
hmac-secret: ${CLOUDFLARE_HMAC_SECRET}
hmac-param: ${CLOUDFLARE_HMAC_PARAM:verify}
database:
schema-version: ${DATABASE_SCHEMA_VERSION:133}
deployment:
forged-alliance-exe-path: ${FORGED_ALLIANCE_EXE_PATH:/content/legacy-featured-mod-files/updates_faf_files/ForgedAlliance.exe}
repositories-directory: ${REPOSITORIES_DIRECTORY:/repositories}
featured-mods-target-directory: ${FEATURED_MODS_TARGET_DIRECTORY:/content/legacy-featured-mod-files}
testing-exe-upload-key: ${TESTING_EXE_UPLOAD_KEY}
forged-alliance-beta-exe-path: ${EXE_UPLOAD_BETA_PATH:/content/legacy-featured-mod-files/updates_fafbeta_files}
forged-alliance-develop-exe-path: ${EXE_UPLOAD_DEVELOP_PATH:/content/legacy-featured-mod-files/updates_fafdevelop_files}
featured-mod:
file-url-format: ${FEATURED_MOD_URL_FORMAT:https://content.${FAF_DOMAIN}/legacy-featured-mod-files/%s/%s}
git-hub:
access-token: ${GITHUB_ACCESS_TOKEN:false}
webhook-secret: ${GITHUB_WEBHOOK_SECRET:false}
deployment-environment: ${GITHUB_DEPLOYMENT_ENVIRONMENT:production}
gog:
token-format: ${GOG_TOKEN_FORMAT:{{FAF:%s}}}
profile-page-url: ${GOG_PROFILE_URL:https://www.gog.com/u/%s}
games-list-url: ${GOG_GAMES_LIST_URL:https://www.gog.com/u/%s/games/stats?sort=recent_playtime&order=desc&page=%d}
jwt:
secretKeyPath: ${JWT_PRIVATE_KEY_PATH:/pki/secret.key}
publicKeyPath: ${JWT_PUBLIC_KEY_PATH:/pki/public.key}
mail:
from-email-name: ${EMAIL_FROM_NAME}
from-email-address: ${EMAIL_FROM_ADDRESS}
map:
target-directory: ${MAP_UPLOAD_PATH:/content/maps}
directory-preview-path-small: ${MAP_PREVIEW_PATH_SMALL:/content/maps/previews/small}
directory-preview-path-large: ${MAP_PREVIEW_PATH_LARGE:/content/maps/previews/large}
small-previews-url-format: ${MAP_SMALL_PREVIEWS_URL_FORMAT:https://content.${FAF_DOMAIN}/maps/previews/small/%s}
large-previews-url-format: ${MAP_LARGE_PREVIEWS_URL_FORMAT:https://content.${FAF_DOMAIN}/maps/previews/large/%s}
download-url-format: ${MAP_DOWNLOAD_URL_FORMAT:https://content.${FAF_DOMAIN}/maps/%s}
default-license-id: ${MAP_DEFAULT_LICENSE_ID:1}
mod:
target-directory: ${MOD_UPLOAD_PATH:/content/mods}
download-url-format: ${MOD_DOWNLOAD_URL_FORMAT:https://content.${FAF_DOMAIN}/mods/%s}
preview-url-format: ${MOD_PREVIEW_URL_FORMAT:https://content.${FAF_DOMAIN}/mods/%s}
thumbnail-target-directory: ${MOD_THUMBNAIL_TARGET_DIRECTORY:/content/mods/thumbs}
default-license-id: ${MOD_DEFAULT_LICENSE_ID:1}
nodebb:
base-url: ${NODEBB_BASE_URL:false}
admin-user-id: ${NODEBB_ADMIN_USERID:1}
master-token: ${NODEBB_MASTER_TOKEN:false}
password-reset:
password-reset-url-format: ${PASSWORD_RESET_URL_FORMAT:https://www.${FAF_DOMAIN}/account/password/confirmReset?username=%s&token=%s}
subject: ${PASSWORD_RESET_EMAIL_SUBJECT:FAF password reset}
mail-template-path: ${PASSWORD_RESET_MAIL_TEMPLATE_PATH:/config/mail/password-reset.html}
rating:
default-mean: 1500
default-deviation: 500
recaptcha:
enabled: ${RECAPTCHA_ENABLED:false}
secret: ${RECAPTCHA_SECRET}
registration:
activation-url-format: ${ACTIVATION_URL_FORMAT:https://www.${FAF_DOMAIN}/account/activate?username=%s&token=%s}
subject: ${REGISTRATION_EMAIL_SUBJECT:FAF user registration}
activation-mail-template-path: ${ACCOUNT_ACTIVATION_MAIL_TEMPLATE_PATH:/config/mail/account-activation.html}
welcome-subject: ${WELCOME_MAIL_SUBJECT:Welcome to FAF}
welcome-mail-template-path: ${WELCOME_MAIL_TEMPLATE_PATH:/config/mail/welcome-to-faf.html}
replay:
download-url-format: ${REPLAY_DOWNLOAD_URL_FORMAT:https://replays.${FAF_DOMAIN}/%s}
steam:
realm: ${STEAM_REALM:https://api.${FAF_DOMAIN}}
api-key: ${STEAM_API_KEY}
link-to-steam-redirect-url-format: ${STEAM_LINK_REDIRECT_URL_FORMAT:https://api.${FAF_DOMAIN}/users/linkToSteam?token=%s}
steam-password-reset-redirect-url-format: ${STEAM_PASSWORD_RESET_REDIRECT_URL_FORMAT:https://api.${FAF_DOMAIN}/users/requestPasswordResetViaSteam}
tutorial:
thumbnail-url-format: ${TUTORIAL_THUMBNAIL_URL_FORMAT:https://content.${FAF_DOMAIN}/faf/tutorials/thumbs/%s}
coturn:
token-lifetime-seconds: ${COTURN_TOKEN_LIFETIME_SECONDS:86400}
user:
minimum-days-between-username-change: ${MINIMUM_DAYS_BETWEEN_USERNAME_CHANGE:30}
username-reservation-time-in-months: ${USERNAME_RESERVATION_TIME_IN_MONTHS:6}
spring:
application:
name: FAF Java API
datasource:
url: jdbc:mariadb://${DATABASE_ADDRESS:127.0.0.1}/${DATABASE_NAME:faf}?useSSL=false
name: faf
username: ${DATABASE_USERNAME}
password: ${DATABASE_PASSWORD}
configuration:
connection-test-query: SELECT 1 FROM DUAL
minimum-idle: 2
maximum-pool-size: 12
league-datasource:
url: jdbc:mariadb://${LEAGUE_DATABASE_ADDRESS:127.0.0.1}/${LEAGUE_DATABASE_NAME:faf-league}?useSSL=false
name: faf-league
username: ${LEAGUE_DATABASE_USERNAME:faf-league-service}
password: ${LEAGUE_DATABASE_PASSWORD}
configuration:
connection-test-query: SELECT 1 FROM DUAL
minimum-idle: 2
maximum-pool-size: 12
rabbitmq:
host: ${RABBIT_HOST}
port: ${RABBIT_PORT:5672}
username: ${RABBIT_USERNAME:faf-java-api}
password: ${RABBIT_PASSWORD}
virtual-host: ${RABBIT_VHOST:/faf-core}
jpa:
hibernate:
naming:
physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
properties:
hibernate:
current_session_context_class: org.springframework.orm.hibernate5.SpringSessionContext
dialect: org.hibernate.dialect.MariaDBDialect
jackson:
serialization:
WRITE_DATES_AS_TIMESTAMPS: false
profiles:
active: ${API_PROFILE}
servlet:
multipart:
max-file-size: 350MB
max-request-size: 350MB
file-size-threshold: 5MB
mail:
host: ${MAIL_HOST:false}
port: ${MAIL_PORT:false}
username: ${MAIL_USERNAME:false}
password: ${MAIL_PASSWORD:false}
data:
jpa:
repositories:
bootstrap-mode: DEFAULT
security:
oauth2:
resourceserver:
jwt:
issuer-uri: ${JWT_FAF_HYDRA_ISSUER:https://hydra.${FAF_DOMAIN}/}
aot:
enabled: true
server:
# Mind that this is configured in the docker compose file as well (that is, in the gradle script that generates it)
port: ${API_PORT:8010}
servlet:
context-path: ${CONTEXT_PATH:/}
encoding:
charset: utf-8
enabled: true
force: true
forward-headers-strategy: native
tomcat:
relaxed-query-chars: "[,]" # Elide makes heave use of these and many browsers don't escape them
management:
server:
port: ${MANAGEMENT_PORT:8011}
address: ${MANAGEMENT_ADDRESS:}
endpoints:
web:
exposure:
include: '*'
logging:
pattern:
console: "%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(%5p) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%36.36X{requestId:- no request context}]){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n%wEx"
level:
com.faforever: ${LOG_LEVEL:info}
file:
path: ${LOG_FILE_DIRECTORY:}
springdoc:
swagger-ui:
urls:
- url: /elide/docs
name: data
- url: /v3/api-docs
name: custom