This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
Commit 01d5e2bc authored by Johannes Kainz's avatar Johannes Kainz
Browse files

Merge branch 'development' into monitoring

parents 3e41b63f 38638f56
2 merge requests!188Merging Peer Reviewing et. al to Master,!164211 peer reviewing functionality
...@@ -34,12 +34,12 @@ maven-compile: ...@@ -34,12 +34,12 @@ maven-compile:
maven-test: maven-test:
# DinD service is required for Testcontainers # DinD service is required for Testcontainers
services: services:
- docker:dind - docker:20-dind
variables: variables:
# Instruct Testcontainers to use the daemon of DinD. # Instruct Testcontainers to use the daemon of DinD.
DOCKER_HOST: 'tcp://docker:2375' DOCKER_HOST: 'tcp://docker:2375'
DOCKER_TLS_CERTDIR: ""
# before_script: # before_script:
# - docker info # - docker info
stage: test stage: test
......
...@@ -111,6 +111,10 @@ jhipster: ...@@ -111,6 +111,10 @@ jhipster:
time-to-live-seconds: 3600 # By default objects stay 1 hour in the cache time-to-live-seconds: 3600 # By default objects stay 1 hour in the cache
max-entries: 1000 # Number of objects in each cache entry max-entries: 1000 # Number of objects in each cache entry
security: security:
oauth2:
audience:
# TODO: audience seems not really relevant, could be omitted? It is identical with client-id above
# - 149276ac11138d9ba72fb3cd12815e3fa2f372866df0eac0f7d1aae5fdffea24
authentication: authentication:
jwt: jwt:
# This token must be encoded using Base64 and be at least 256 bits long (you can type `openssl rand -base64 64` on your command line to generate a 512 bits one) # This token must be encoded using Base64 and be at least 256 bits long (you can type `openssl rand -base64 64` on your command line to generate a 512 bits one)
......
...@@ -19,6 +19,8 @@ logging: ...@@ -19,6 +19,8 @@ logging:
tech.jhipster: DEBUG tech.jhipster: DEBUG
org.hibernate.SQL: DEBUG org.hibernate.SQL: DEBUG
at.ac.uibk.gitsearch: DEBUG at.ac.uibk.gitsearch: DEBUG
org.glassfish.jersey.client.ClientExecutorProvidersConfigurator: INFO
javax.management.mbeanserver: INFO
management: management:
health: health:
...@@ -26,12 +28,12 @@ management: ...@@ -26,12 +28,12 @@ management:
enabled: false enabled: false
spring: spring:
profiles: # profiles:
active: dev # active: staging
include: # include:
- doc-api # - doc-api
# Uncomment to activate TLS for the dev profile # Uncomment to activate TLS for the dev profile
#- tls #- tls
devtools: devtools:
restart: restart:
enabled: false enabled: false
...@@ -43,46 +45,49 @@ spring: ...@@ -43,46 +45,49 @@ spring:
indent-output: true indent-output: true
datasource: datasource:
type: com.zaxxer.hikari.HikariDataSource type: com.zaxxer.hikari.HikariDataSource
url: jdbc:h2:file:./target/h2db/db/gitsearch;DB_CLOSE_DELAY=-1 url: jdbc:mysql://localhost:3306/gitsearch?useUnicode=true&characterEncoding=utf8&useSSL=false&useLegacyDatetimeCode=false&serverTimezone=UTC&createDatabaseIfNotExist=true
username: gitsearch username: root
password: password:
hikari: hikari:
poolName: Hikari poolName: Hikari
auto-commit: false auto-commit: false
h2: data-source-properties:
console: cachePrepStmts: true
# disable spring boot built-in h2-console since we start it manually with correct configuration prepStmtCacheSize: 250
enabled: true prepStmtCacheSqlLimit: 2048
jpa: useServerPrepStmts: true
database-platform: tech.jhipster.domain.util.FixedH2Dialect
elasticsearch: elasticsearch:
uris: http://localhost:9200 uris: http://localhost:9200
liquibase: liquibase:
# Remove 'faker' if you do not want the sample data to be loaded automatically # Remove 'faker' if you do not want the sample data to be loaded automatically
contexts: dev, faker contexts: dev
mail: mail:
host: localhost host: smtp.uibk.ac.at
port: 25 port: 25
username: username: ${MAIL_USERNAME}
password: password: ${MAIL_PASSWORD}
messages: messages:
cache-duration: PT1S # 1 second, see the ISO 8601 standard cache-duration: PT1S # 1 second, see the ISO 8601 standard
thymeleaf: thymeleaf:
cache: false cache: true
security: security:
oauth2: oauth2:
client: client:
provider: provider:
gitlabOidc: gitlabOidc:
issuer-uri: https://sharing.codeability-austria.uibk.ac.at issuer-uri: ${SECURITY_OAUTH2_CLIENT_PROVIDER_GITLABOIDC_ISSUERURI}
registration: registration:
gitlabOidc: gitlabOidc:
client-id: 149276ac11138d9ba72fb3cd12815e3fa2f372866df0eac0f7d1aae5fdffea24 client-id: ${SECURITY_OAUTH2_CLIENT_REGISTRATION_GITLABOIDC_CLIENTID}
client-secret: 6f480635241f420a361581f4837594ea6f48f5ee6f515c1aa89f325dd922dbb0 client-secret: ${SECURITY_OAUTH2_CLIENT_REGISTRATION_GITLABOIDC_CLIENTSECRET}
scope: api,read_user,read_api,read_repository,write_repository,read_registry,write_registry,sudo,openid,profile,email scope: api,read_user,read_api,read_repository,write_repository,read_registry,write_registry,sudo,openid,profile,email
server: server:
port: 8080 port: 8080
compression:
enabled: true
mime-types: text/html,text/xml,text/plain,text/css, application/javascript, application/json
min-response-size: 1024
# =================================================================== # ===================================================================
# JHipster specific properties # JHipster specific properties
...@@ -94,16 +99,16 @@ jhipster: ...@@ -94,16 +99,16 @@ jhipster:
cache: # Cache configuration cache: # Cache configuration
ehcache: # Ehcache configuration ehcache: # Ehcache configuration
time-to-live-seconds: 3600 # By default objects stay 1 hour in the cache time-to-live-seconds: 3600 # By default objects stay 1 hour in the cache
max-entries: 100 # Number of objects in each cache entry max-entries: 1000 # Number of objects in each cache entry
# CORS is only enabled by default with the "dev" profile # CORS is only enabled by default with the "dev" profile
cors: # cors:
# Allow Ionic for JHipster by default (* no longer allowed in Spring Boot 2.4+) # Allow Ionic for JHipster by default (* no longer allowed in Spring Boot 2.4+)
allowed-origins: 'http://localhost:8100,https://localhost:8100,http://localhost:9000,https://localhost:9000,http://localhost:4200,https://localhost:4200' # allowed-origins: 'http://localhost:8100,https://localhost:8100,http://localhost:9000,https://localhost:9000,http://localhost:4200,https://localhost:4200'
allowed-methods: '*' # allowed-methods: '*'
allowed-headers: '*' # allowed-headers: '*'
exposed-headers: 'Authorization,Link,X-Total-Count,X-${jhipster.clientApp.name}-alert,X-${jhipster.clientApp.name}-error,X-${jhipster.clientApp.name}-params' # exposed-headers: 'Authorization,Link,X-Total-Count,X-${jhipster.clientApp.name}-alert,X-${jhipster.clientApp.name}-error,X-${jhipster.clientApp.name}-params'
allow-credentials: true # allow-credentials: true
max-age: 1800 # max-age: 1800
security: security:
oauth2: oauth2:
audience: audience:
...@@ -112,12 +117,12 @@ jhipster: ...@@ -112,12 +117,12 @@ jhipster:
authentication: authentication:
jwt: jwt:
# This token must be encoded using Base64 and be at least 256 bits long (you can type `openssl rand -base64 64` on your command line to generate a 512 bits one) # This token must be encoded using Base64 and be at least 256 bits long (you can type `openssl rand -base64 64` on your command line to generate a 512 bits one)
base64-secret: ZTY3OGIwZWZhMzdhYTQ2NjAwNTdlNDQ2NWM4YjQyMzlhMWVkMTJlYTExYzMwMzBjOWIzM2E1OTRmZWZkZmYzYzZhNWQ5N2EzZjMyNTFkMjM0ZjNmOWRhYTYzNGEzZDE3NThkYTNmZGVmNTQ1MmRlZjg1YWY4NTU4OGVmNDBkZDI= base64-secret: ${JHIPSTER_SECURITY_AUTHENTICATION_JWT_BASE64SECRET}
# Token is valid 24 hours # Token is valid 24 hours
token-validity-in-seconds: 86400 token-validity-in-seconds: 86400
token-validity-in-seconds-for-remember-me: 2592000 token-validity-in-seconds-for-remember-me: 2592000
mail: # specific JHipster mail property, for standard properties see MailProperties mail: # specific JHipster mail property, for standard properties see MailProperties
base-url: http://127.0.0.1:8080 base-url: https://dev-exchange.codeability-austria.uibk.ac.at
logging: logging:
use-json-format: false # By default, logs are not in Json format use-json-format: false # By default, logs are not in Json format
logstash: # Forward logs to logstash over a socket, used by LoggingConfiguration logstash: # Forward logs to logstash over a socket, used by LoggingConfiguration
...@@ -139,14 +144,12 @@ jhipster: ...@@ -139,14 +144,12 @@ jhipster:
application: application:
registeredConnectors: registeredConnectors:
- url: 'http://localhost:8081/api/sharing/config' - url: 'https://artemis.codeability-austria.uibk.ac.at/api/sharing/config'
accessToken: acdd-erdf-asd2-234f-234d-32eb accessToken: 'notYet'
- url: 'http://localhost:8082/api/sharingPluginConfig' registeredConnectorsCallBackURL: https://dev-exchange.codeability-austria.uibk.ac.at/api
accessToken: 2c8845a4-b3df-414b-a682-36e2313dc1c0 installationName: Sharing Plattform (Staging)
registeredConnectorsCallBackURL: http://localhost:8080/api
installationName: Sharing Plattform (Development)
gitlab: gitlab:
url: https://sharing.codeability-austria.uibk.ac.at/ url: https://sharing.codeability-austria.uibk.ac.at/
guestAccessToken: zPxPmJE3UXAZJpBzxqej guestAccessToken: ${APPLICATION_GITLAB_GENERALACCESSTOKEN}
adminAccessToken: PJopKiYsK9AxqajfBxR6 adminAccessToken: ${APPLICATION_GITLAB_ADMINACCESSTOKEN}
oerLink: https://oeresource-dev.logic.at oerLink: https://oeresource-dev.logic.at
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment