Skip to content

Commit

Permalink
OK-458 Korjattu lokaali ympäristö
Browse files Browse the repository at this point in the history
  • Loading branch information
jkorri committed May 13, 2024
1 parent 320ea4f commit ddad28b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public DataSource dataSourceValintalaskenta(
config.setPoolName("springHikariCP");
config.setConnectionTestQuery("SELECT 1");
config.setJdbcUrl(url);
config.setDriverClassName(driverClassName);
if(!driverClassName.equals("")) config.setDriverClassName(driverClassName);
config.setMaximumPoolSize(Integer.parseInt(maxPoolSize));
config.setMaxLifetime(Long.parseLong(maxWait));
config.setLeakDetectionThreshold(Long.parseLong(leaksThreshold));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static void main(String[] args) {
System.setProperty("server.port", "8443");

// cas-configuraatio
System.setProperty("cas-service.service", "https://virkailija.hahtuvaopintopolku.fi/sijoittelu-service");
System.setProperty("cas-service.service", String.format("https://virkailija.%sopintopolku.fi/sijoittelu-service", ENVIRONMENT));
System.setProperty("cas-service.sendRenew", "false");
System.setProperty("cas-service.key", "sijoittelu-service");
System.setProperty("web.url.cas", String.format("https://virkailija.%sopintopolku.fi/cas", ENVIRONMENT));
Expand All @@ -34,14 +34,18 @@ public static void main(String[] args) {
System.setProperty("valintarekisteri.db.user", "oph");
System.setProperty("valintarekisteri.db.password", "oph");

System.setProperty("sijoittelu.valintalaskenta.postgresql.url", "jdbc:postgresql://localhost:5434/valintalaskenta");
System.setProperty("sijoittelu.valintalaskenta.postgresql.user", "app");
System.setProperty("sijoittelu.valintalaskenta.postgresql.password", "ophoph");
System.setProperty("sijoittelu.valintalaskenta.postgresql.driver", "");
System.setProperty("sijoittelu.valintalaskenta.postgresql.maxlifetimemillis", "60000");
System.setProperty("sijoittelu.valintalaskenta.postgresql.readonly", "true");

// ulkoiset palvelut
System.setProperty("host.virkailija", String.format("virkailija.%sopintopolku.fi", ENVIRONMENT));
System.setProperty("kayttooikeus-service.userDetails.byUsername", String.format("https://virkailija.%sopintopolku.fi/kayttooikeus-service/userDetails/$1", ENVIRONMENT));
System.setProperty("kayttooikeus-service.userDetails.byUsername", String.format("http://alb.%sopintopolku.fi:8888/kayttooikeus-service/userDetails/$1", ENVIRONMENT));
System.setProperty("organisaatio-service.organisaatio.hae.oid", "${url-virkailija}/organisaatio-service/api/hierarkia/hae?aktiiviset=true&suunnitellut=true&lakkautetut=true&oid=$1");
System.setProperty("valintalaskentakoostepalvelu.valintatulosservice.rest.url", String.format("https://virkailija.%sopintopolku.fi/valinta-tulos-service", ENVIRONMENT));
System.setProperty("valintalaskentakoostepalvelu.valintatulosservice.rest.url", String.format("http://alb.%sopintopolku.fi:8888/valinta-tulos-service", ENVIRONMENT));
System.setProperty("valintalaskentakoostepalvelu.parametriservice.rest.url", String.format("https://virkailija.%sopintopolku.fi/ohjausparametrit-service/api", ENVIRONMENT));
System.setProperty("valintalaskentakoostepalvelu.tarjonta.rest.url", "https://${host.virkailija}/tarjonta-service/rest");
System.setProperty("valintarekisteri.tarjonta-service.url", String.format("https://virkailija.%sopintopolku.fi/tarjonta-service", ENVIRONMENT));
Expand All @@ -62,7 +66,6 @@ public static void main(String[] args) {
System.setProperty("valintarekisteri.blaze.request-timeout", "60");

System.setProperty("spring.profiles.active", "dev");
//System.setProperty("logging.level.root", "debug");

// uusia seurantaa varten
System.setProperty("valintalaskentakoostepalvelu.seuranta.rest.url", "https://${host.virkailija}/seuranta-service/resources");
Expand Down

0 comments on commit ddad28b

Please sign in to comment.