Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openADOM-frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VARLOTEAUX Lucile
openADOM-frontend
Commits
eb2395c8
Commit
eb2395c8
authored
8 months ago
by
Philippe Tcherniatinsky
Browse files
Options
Downloads
Patches
Plain Diff
Paramétrage pour déploiement minotaur
parent
fec34bad
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/main/java/fr/inra/oresing/OreSiNg.java
+2
-2
2 additions, 2 deletions
src/main/java/fr/inra/oresing/OreSiNg.java
src/main/resources/application.properties
+5
-5
5 additions, 5 deletions
src/main/resources/application.properties
ui/src/config.js
+10
-6
10 additions, 6 deletions
ui/src/config.js
with
17 additions
and
13 deletions
src/main/java/fr/inra/oresing/OreSiNg.java
+
2
−
2
View file @
eb2395c8
...
...
@@ -49,8 +49,8 @@ public class OreSiNg implements WebMvcConfigurer {
@Override
public
void
addCorsMappings
(
final
CorsRegistry
registry
)
{
registry
.
addMapping
(
"/api/**"
)
.
allowedOrigins
(
"http://localhost:8080"
)
.
allowed
Methods
(
"POST"
,
"PUT"
,
"GET"
,
"DELETE
"
)
.
allowed
Origins
(
"http://localhost:8080"
,
"https://147.100.179.128"
,
"https://data-minotaur.eu"
,
"http://147.100.179.128"
,
"http://data-minotaur.eu
"
)
.
allowCredentials
(
true
);
}
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/application.properties
+
5
−
5
View file @
eb2395c8
#Configuration for development mode
#Need to be overridden in final bundle
spring.config.import
=
optional:file:.env-default[.properties],optional:file:.env[.properties]
server.port
=
${SERVER_PORT}
server.servlet-path
=
${SERVER_SERVLET-PATH}}
server.port
=
${
MINOTAUR_
SERVER_PORT}
server.servlet-path
=
${
MINOTAUR_
SERVER_SERVLET-PATH}}
springdoc.swagger-ui.path
=
/swagger-ui.html
springdoc.api-docs.path
=
/api-docs
spring.datasource.url
=
jdbc:postgresql://${
DB
_HOST_PORT}/${
DB
_DATABASE}?preparedStatementCacheQueries=0
spring.datasource.username
=
${
DB
_USER}
spring.datasource.password
=
${
DB
_PASSWORD}
spring.datasource.url
=
jdbc:postgresql://${
MINOTAUR
_HOST_PORT}/${
MINOTAUR
_DATABASE}?preparedStatementCacheQueries=0
spring.datasource.username
=
${
MINOTAUR
_USER}
spring.datasource.password
=
${
MINOTAUR
_PASSWORD}
#logging.level.org.springframework.jdbc=TRACE
spring_datasource_hikari_connection-timeout
=
${SPRING_DATASOURCE_HIKARI_CONNNECTION-TIMEOUT}
...
...
This diff is collapsed.
Click to expand it.
ui/src/config.js
+
10
−
6
View file @
eb2395c8
//const V1 = '147.100.179.128';
const
V2
=
"
147.100.179.122
"
;
const
LOCALHOST
=
"
localhost:8081
"
;
const
V2
=
"
data-minotaur.eu
"
;
const
V2_HTTP
=
"
https://
"
const
LOCALHOST_HTTP
=
"
http://
"
const
WSS
=
"
wss://
"
const
LOCALHOST
=
"
http://localhost:8081
"
;
const
DEPLOIEMENT
=
V2
;
const
SERVER
=
process
.
env
.
NODE_ENV
===
"
production
"
?
DEPLOIEMENT
:
LOCALHOST
;
const
HTTP
=
process
.
env
.
NODE_ENV
===
"
production
"
?
V2_HTTP
:
LOCALHOST_HTTP
;
console
.
log
(
"
********************
"
+
SERVER
+
"
***************************
"
);
const
constants
=
{
BASE
:
"
http://
"
+
SERVER
+
"
/api/v1/
"
,
API_URL
:
"
http://
"
+
SERVER
+
"
/api/v1/
"
,
WS_URL
:
"
wss://
"
+
SERVER
+
"
/api/V1/
"
,
SWAGGER
:
"
http://
"
+
SERVER
+
"
/swagger-ui.html
"
,
BASE
:
HTTP
+
SERVER
+
"
/api/v1/
"
,
API_URL
:
HTTP
+
SERVER
+
"
/api/v1/
"
,
WS_URL
:
WSS
+
SERVER
+
"
/api/V1/
"
,
SWAGGER
:
HTTP
+
SERVER
+
"
/swagger-ui.html
"
,
};
export
default
constants
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment