Skip to content

Commit

Permalink
- Vault still required for local profile, but removed custom Vault in…
Browse files Browse the repository at this point in the history
…it code.
  • Loading branch information
rfc3092 committed Nov 26, 2024
1 parent e14475f commit ef2d381
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 56 deletions.
8 changes: 2 additions & 6 deletions apps/testnorge-statisk-data-forvalter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@ sterkt anbefalt å følge. Disse applikasjonen er ansvarlige for å opprette man


## Lokal kjøring
Ha naisdevice kjørende og kjør StatiskDataForvalterApplicationStarter med følgende argumenter:
```
-Dspring.cloud.vault.token=[kopier token fra vault]
-Dspring.profiles.active=local
```
Swagger på [http://localhost:8080/swagger](http://localhost:4390/swagger).
* [Generelt.](../../docs/local_general.md)
* [Vault.](../../docs/local_vault.md)

Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
package no.nav.registre.sdforvalter;

import lombok.extern.slf4j.Slf4j;
import no.nav.registre.sdforvalter.util.VaultUtil;
import no.nav.testnav.libs.vault.VaultUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@Slf4j
@SpringBootApplication
public class StatiskDataForvalterApplicationStarter {

public static void main(String[] args) {

if ("prod".equals(System.getProperty("spring.profiles.active"))) {
VaultUtil.initCloudVaultToken();
}

SpringApplication.run(StatiskDataForvalterApplicationStarter.class, args);

}
}

This file was deleted.

0 comments on commit ef2d381

Please sign in to comment.