Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
portal-backend
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HBP Medical Informatics Platform
portal-backend
Commits
82bb4642
Commit
82bb4642
authored
6 years ago
by
Mirco Nasuti
Browse files
Options
Downloads
Patches
Plain Diff
add parameters to use an HTTP(S) proxy
parent
dc3c711e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docker/README.md
+7
-0
7 additions, 0 deletions
docker/README.md
docker/run.sh
+12
-0
12 additions, 0 deletions
docker/run.sh
with
19 additions
and
0 deletions
docker/README.md
+
7
−
0
View file @
82bb4642
...
...
@@ -63,3 +63,10 @@ To use this image, you need a running instance of PostgreSQL and to configure th
*
CONTEXT_PATH: context path appended to all services running in this container. Default to "/services".
*
SESSION_TIMEOUT: Timeout in milliseconds for session expiration. Default to 2592000.
### PROXY
*
HTTP_PROXY_HOST: HTTP proxy host
*
HTTP_PROXY_PORT: HTTP proxy port
*
HTTPS_PROXY_HOST: HTTPS proxy host
*
HTTPS_PROXY_PORT: HTTPS proxy port
This diff is collapsed.
Click to expand it.
docker/run.sh
+
12
−
0
View file @
82bb4642
...
...
@@ -10,4 +10,16 @@ fi
if
[
!
-z
"
$FEATURES_DB_SERVER
"
]
;
then
OPTS
=
"
$OPTS
-wait tcp://
$FEATURES_DB_SERVER
-timeout 60s"
fi
if
[
!
-z
"
$HTTP_PROXY_HOST
"
]
;
then
JAVA_OPTIONS
=
"
$JAVA_OPTIONS
-Dhttp.proxyHost=
$HTTP_PROXY_HOST
"
fi
if
[
!
-z
"
$HTTP_PROXY_PORT
"
]
;
then
JAVA_OPTIONS
=
"
$JAVA_OPTIONS
-Dhttp.proxyPort=
$HTTP_PROXY_PORT
"
fi
if
[
!
-z
"
$HTTPS_PROXY_HOST
"
]
;
then
JAVA_OPTIONS
=
"
$JAVA_OPTIONS
-Dhttps.proxyHost=
$HTTPS_PROXY_HOST
"
fi
if
[
!
-z
"
$HTTPS_PROXY_PORT
"
]
;
then
JAVA_OPTIONS
=
"
$JAVA_OPTIONS
-Dhttps.proxyPort=
$HTTPS_PROXY_PORT
"
fi
dockerize
$OPTS
java
${
JAVA_OPTIONS
}
-jar
/usr/share/jars/portal-backend.jar
This diff is collapsed.
Click to expand it.
Preview
0%
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