Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sitemule
Public
workshops
open source on IBM i
FastAPI
Commits
b0d77964
Commit
b0d77964
authored
3 years ago
by
Jens Melgard Churchill
Browse files
Options
Download
Email Patches
Plain Diff
Added support for reverse_proxy root_path
parent
9ee392a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
start.sh
+3
-2
start.sh
with
3 additions
and
2 deletions
+3
-2
start.sh
+
3
-
2
View file @
b0d77964
...
...
@@ -31,6 +31,7 @@ HTTP_PORT="$(echo "$USER" | pcre2grep -o1 '(\d+)$' | xargs -I {} echo '9000+{}'
HTTP_PORT
=
"
${
HTTP_PORT
:-
9000
}
"
if
[
"
$HTTP_PORT
"
-ge
9000
]
;
then
ID
=
"
$(
echo
"
$HTTP_PORT
- 9000"
| bc
)
"
BIND
=
"
$HTTP_HOST
:
$HTTP_PORT
"
if
curl
-so
/dev/null
"
$BIND
"
;
then
...
...
@@ -38,9 +39,9 @@ if [ "$HTTP_PORT" -ge 9000 ]; then
echo
"Re-starting service on
$BIND
..."
else
echo
"Starting service
$BIND
..."
fi
fi
hypercorn
--debug
--bind
"
$BIND
"
--log-level
info
"main:app"
&>
".main.log"
&
hypercorn
--debug
--bind
"
$BIND
"
--log-level
info
--root-path
=
"/
$ID
"
"main:app"
&>
".main.log"
&
n
=
0
started
=
0
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help