|
| 1 | +server: |
| 2 | + applicationConnectors: |
| 3 | + - type: http |
| 4 | + port: 9101 |
| 5 | + |
| 6 | + adminConnectors: |
| 7 | + - type: http |
| 8 | + port: 9111 |
| 9 | + |
| 10 | + requestLog: |
| 11 | + appenders: |
| 12 | + - type: file |
| 13 | + currentLogFilename: var/log/judgels-server-request.log |
| 14 | + archivedLogFilenamePattern: var/log/judgels-server-request-%d.log.gz |
| 15 | + archivedFileCount: 14 |
| 16 | + |
| 17 | +database: |
| 18 | + driverClass: com.mysql.jdbc.Driver |
| 19 | + url: jdbc:mysql://localhost/judgels?useSSL=false |
| 20 | + user: {{ db_username }} |
| 21 | + password: {{ db_password }} |
| 22 | + properties: |
| 23 | + charSet: UTF-8 |
| 24 | + hibernate.dialect: org.hibernate.dialect.MySQL8Dialect |
| 25 | + hibernate.generate_statistics: false |
| 26 | + hibernate.query.plan_cache_max_size: 64 |
| 27 | + hibernate.query.plan_parameter_metadata_max_size: 32 |
| 28 | + |
| 29 | +logging: |
| 30 | + appenders: |
| 31 | + - type: console |
| 32 | + threshold: INFO |
| 33 | + - type: file |
| 34 | + currentLogFilename: var/log/judgels-server.log |
| 35 | + archivedLogFilenamePattern: var/log/judgels-server-%d.log.gz |
| 36 | + archivedFileCount: 14 |
| 37 | + |
| 38 | + loggers: |
| 39 | + org.hibernate.type.BasicTypeRegistry: |
| 40 | + level: OFF |
| 41 | + |
| 42 | +webSecurity: |
| 43 | + cors: |
| 44 | + allowedOrigins: https://{{ nginx_domain_judgels_client }} |
| 45 | + allowCredentials: true |
| 46 | + |
| 47 | +judgels: |
| 48 | + baseDataDir: var/data |
| 49 | + |
| 50 | + app: |
| 51 | + name: {{ app_name }} |
| 52 | + |
| 53 | +{% if rabbitmq_username is defined %} |
| 54 | + rabbitmq: |
| 55 | + host: localhost |
| 56 | + username: {{ rabbitmq_username }} |
| 57 | + password: {{ rabbitmq_password }} |
| 58 | +{% endif %} |
| 59 | + |
| 60 | +jophiel: |
| 61 | + auth: |
| 62 | +{% if jophiel_auth_google_clientId is defined %} |
| 63 | + google: |
| 64 | + clientId: {{ jophiel_auth_google_clientId }} |
| 65 | +{% endif %} |
| 66 | + |
| 67 | +{% if jophiel_mailer_host is defined %} |
| 68 | + mailer: |
| 69 | + host: {{ jophiel_mailer_host }} |
| 70 | + port: {{ jophiel_mailer_port }} |
| 71 | + useSsl: {{ jophiel_mailer_useSsl }} |
| 72 | + username: {{ jophiel_mailer_username }} |
| 73 | + password: {{ jophiel_mailer_password }} |
| 74 | + sender: {{ jophiel_mailer_sender }} |
| 75 | +{% endif %} |
| 76 | + |
| 77 | +{% if recaptcha_siteKey is defined %} |
| 78 | + recaptcha: |
| 79 | + siteKey: {{ recaptcha_siteKey }} |
| 80 | + secretKey: {{ recaptcha_secretKey }} |
| 81 | +{% endif %} |
| 82 | + |
| 83 | +{% if jophiel_aws_accessKey is defined %} |
| 84 | + aws: |
| 85 | + accessKey: {{ jophiel_aws_accessKey }} |
| 86 | + secretKey: {{ jophiel_aws_secretKey }} |
| 87 | + s3BucketRegionId: {{ jophiel_aws_s3BucketRegionId }} |
| 88 | + cloudFrontBaseUrl: {{ jophiel_aws_cloudFrontBaseUrl }} |
| 89 | +{% endif %} |
| 90 | + |
| 91 | + userAvatar: |
| 92 | + fs: |
| 93 | + type: {{ jophiel_userAvatar_fs_type | default('local', true) }} |
| 94 | +{% if jophiel_userAvatar_fs_type | default('local', true) != 'local' %} |
| 95 | + s3BucketName: {{ jophiel_userAvatar_fs_s3BucketName }} |
| 96 | +{% endif %} |
| 97 | + |
| 98 | + userRegistration: |
| 99 | + enabled: {{ jophiel_userRegistration_enabled | default(false, true) }} |
| 100 | +{% if jophiel_userRegistration_enabled | default(false, true) %} |
| 101 | + useRecaptcha: {{ jophiel_userRegistration_useRecaptcha }} |
| 102 | + activationEmailTemplate: |
| 103 | + subject: {{ jophiel_userRegistration_activationEmailTemplate_subject }} |
| 104 | + body: {{ jophiel_userRegistration_activationEmailTemplate_body }} |
| 105 | +{% else %} |
| 106 | + useRecaptcha: false |
| 107 | + activationEmailTemplate: |
| 108 | + subject: UNUSED |
| 109 | + body: UNUSED |
| 110 | +{% endif %} |
| 111 | + |
| 112 | + userResetPassword: |
| 113 | + enabled: {{ jophiel_userResetPassword_enabled | default(false, true) }} |
| 114 | +{% if jophiel_userResetPassword_enabled | default(false, true) %} |
| 115 | + requestEmailTemplate: |
| 116 | + subject: {{ jophiel_userResetPassword_requestEmailTemplate_subject }} |
| 117 | + body: {{ jophiel_userResetPassword_requestEmailTemplate_body }} |
| 118 | + resetEmailTemplate: |
| 119 | + subject: {{ jophiel_userResetPassword_resetEmailTemplate_subject }} |
| 120 | + body: {{ jophiel_userResetPassword_resetEmailTemplate_body }} |
| 121 | +{% else %} |
| 122 | + requestEmailTemplate: |
| 123 | + subject: UNUSED |
| 124 | + body: UNUSED |
| 125 | + resetEmailTemplate: |
| 126 | + subject: UNUSED |
| 127 | + body: UNUSED |
| 128 | +{% endif %} |
| 129 | + |
| 130 | + superadmin: |
| 131 | + initialPassword: {{ jophiel_superadmin_initialPassword }} |
| 132 | + |
| 133 | + session: |
| 134 | + maxConcurrentSessionsPerUser: {{ jophiel_session_maxConcurrentSessionsPerUser }} |
| 135 | + disableLogout: {{ jophiel_session_disableLogout }} |
| 136 | + |
| 137 | + web: |
| 138 | + announcements: [] |
| 139 | + |
| 140 | +sandalphon: |
| 141 | + gabriel: |
| 142 | + gradingRequestQueueName: gabriel-grading-request |
| 143 | + gradingResponseQueueName: sandalphon-grading-response |
| 144 | + |
| 145 | +uriel: |
| 146 | + gabriel: |
| 147 | + gradingRequestQueueName: gabriel-grading-request |
| 148 | + gradingResponseQueueName: uriel-grading-response |
| 149 | + |
| 150 | +{% if uriel_aws_accessKey is defined %} |
| 151 | + aws: |
| 152 | + accessKey: {{ uriel_aws_accessKey }} |
| 153 | + secretKey: {{ uriel_aws_secretKey }} |
| 154 | + s3BucketRegionId: {{ uriel_aws_s3BucketRegionId }} |
| 155 | +{% endif %} |
| 156 | + |
| 157 | + submission: |
| 158 | + fs: |
| 159 | + type: {{ uriel_submission_fs_type | default('local', true) }} |
| 160 | +{% if uriel_submission_fs_type | default('local', true) != 'local' %} |
| 161 | + s3BucketName: {{ uriel_submission_fs_s3BucketName }} |
| 162 | +{% endif %} |
| 163 | + |
| 164 | + file: |
| 165 | + fs: |
| 166 | + type: {{ uriel_file_fs_type | default('local', true) }} |
| 167 | +{% if uriel_file_fs_type | default('local', true) != 'local' %} |
| 168 | + s3BucketName: {{ uriel_file_fs_s3BucketName }} |
| 169 | +{% endif %} |
| 170 | + |
| 171 | +jerahmeel: |
| 172 | + gabriel: |
| 173 | + gradingRequestQueueName: gabriel-grading-request |
| 174 | + gradingResponseQueueName: jerahmeel-grading-response |
| 175 | + |
| 176 | +{% if jerahmeel_aws_accessKey is defined %} |
| 177 | + aws: |
| 178 | + accessKey: {{ jerahmeel_aws_accessKey }} |
| 179 | + secretKey: {{ jerahmeel_aws_secretKey }} |
| 180 | + s3BucketRegionId: {{ jerahmeel_aws_s3BucketRegionId }} |
| 181 | +{% endif %} |
| 182 | + |
| 183 | + submission: |
| 184 | + fs: |
| 185 | + type: {{ jerahmeel_submission_fs_type | default('local', true) }} |
| 186 | +{% if jerahmeel_submission_fs_type | default('local', true) != 'local' %} |
| 187 | + s3BucketName: {{ jerahmeel_submission_fs_s3BucketName }} |
| 188 | +{% endif %} |
| 189 | + |
| 190 | + stats: |
| 191 | + enabled: {{ jerahmeel_stats_enabled | default(false, true) }} |
0 commit comments