We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e4a4eb commit 1ed94f8Copy full SHA for 1ed94f8
host/2.0/stretch/amd64/appservice/sshd_config
@@ -2,7 +2,7 @@
2
#
3
# /etc/sshd_config
4
5
-Port 2222
+Port SSH_PORT
6
ListenAddress 0.0.0.0
7
LoginGraceTime 180
8
X11Forwarding yes
host/2.0/stretch/amd64/appservice/start.sh
@@ -1,5 +1,17 @@
1
#!/usr/bin/env bash
+if [ -z $PORT ]; then
+ ASPNETCORE_URLS=http://*:80
+else
+ ASPNETCORE_URLS=http://*:$PORT
+fi
+
9
+if [ -z $SSH_PORT ]; then
10
+ SSH_PORT=2222
11
12
13
+sed -i "s/SSH_PORT/$SSH_PORT/g" /etc/ssh/sshd_config
14
15
service ssh start
16
17
dotnet /azure-functions-host/Microsoft.Azure.WebJobs.Script.WebHost.dll
0 commit comments