Skip to content

Commit 1ed94f8

Browse files
committed
Update SSH_PORT and PORT
1 parent 5e4a4eb commit 1ed94f8

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

Diff for: host/2.0/stretch/amd64/appservice/sshd_config

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# /etc/sshd_config
44

5-
Port 2222
5+
Port SSH_PORT
66
ListenAddress 0.0.0.0
77
LoginGraceTime 180
88
X11Forwarding yes

Diff for: host/2.0/stretch/amd64/appservice/start.sh

+12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
#!/usr/bin/env bash
22

3+
if [ -z $PORT ]; then
4+
ASPNETCORE_URLS=http://*:80
5+
else
6+
ASPNETCORE_URLS=http://*:$PORT
7+
fi
8+
9+
if [ -z $SSH_PORT ]; then
10+
SSH_PORT=2222
11+
fi
12+
13+
sed -i "s/SSH_PORT/$SSH_PORT/g" /etc/ssh/sshd_config
14+
315
service ssh start
416

517
dotnet /azure-functions-host/Microsoft.Azure.WebJobs.Script.WebHost.dll

0 commit comments

Comments
 (0)