Plateforme plamade d'éxecution de traitements NoiseModelling sur serveur (ou cluster de calcul) avec accès restraint utilisant OpenID (google pour l'instant).
This example requires that you configure a Google API resource before running.
-
Open the Google API Credentials Console
-
Select
Create
in the dialog box to create a new API project. -
Give the project a name.
-
In the
Create credentials
dropdown selectOAuth client ID
. -
Follow the prompts for creating a client id.
-
When prompted for Application Type select
Web Application
-
In the
Authorized redirect URIs
add:http://localhost:9590/authenticator?client_name=GoogleOidcClient
-
Click the
Create
button. -
Copy the newly created client id and client secret in the configuration file located in platform/build/resources/main/config.yaml
Define memory to use with the command
export _JAVA_OPTIONS="-Xms4000m -Xmx28000m"
Go into computation_core folder cd computation_core
then run (in order to push dependencies files into computation_core/build/install/computation_core/lib
)
../gradlew clean build installDist --refresh-dependencies
Go into project root folder cd ..
Run ./gradlew platform:run
Copy the configuration file located in platform/src/ratpack/config.demo.yaml
to platform/src/ratpack/config.yaml
and edit with your auth credentials.
Run ./gradlew platform:run
Once the application has started, point your web browser to http://localhost:9590 to access the platform
Example of nginx configuration for setting up a https connection in production
server {
server_name mydomainname.org;
root /var/www/html;
index index.html;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://localhost:9590;
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_read_timeout 3600;
proxy_connect_timeout 3600;
proxy_send_timeout 3600;
}
}