File tree Expand file tree Collapse file tree 5 files changed +11
-11
lines changed Expand file tree Collapse file tree 5 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ RUN apt-get update && \
19
19
# - Remove default host keys
20
20
rm -f /etc/ssh/ssh_host_*key*
21
21
WORKDIR /app
22
- EXPOSE 22 80
22
+ EXPOSE 22 25080
23
23
24
24
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build
25
25
WORKDIR /src
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk.Web" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >netcoreapp3.0 </TargetFramework >
4
+ <TargetFramework >netcoreapp3.1 </TargetFramework >
5
5
<DockerDefaultTargetOS >Linux</DockerDefaultTargetOS >
6
6
<DockerfileTag >emberstack/sftp:dev</DockerfileTag >
7
7
<DockerfileRunArguments >-p 2222:22 --name sftpdev</DockerfileRunArguments >
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ private async Task ConfigureAuthentication()
100
100
var eventsScriptBuilder = new StringBuilder ( ) ;
101
101
eventsScriptBuilder . AppendLine ( "#!/bin/sh" ) ;
102
102
eventsScriptBuilder . AppendLine (
103
- "curl \" http://localhost/api/events/pam/generic?username=$PAM_USER&type=$PAM_TYPE&service=$PAM_SERVICE\" " ) ;
103
+ "curl \" http://localhost:25080 /api/events/pam/generic?username=$PAM_USER&type=$PAM_TYPE&service=$PAM_SERVICE\" " ) ;
104
104
await File . WriteAllTextAsync ( hookScriptFile , eventsScriptBuilder . ToString ( ) ) ;
105
105
await ProcessUtil . QuickRun ( "chown" , $ "root:root \" { hookScriptFile } \" ") ;
106
106
await ProcessUtil . QuickRun ( "chmod" , $ "+x \" { hookScriptFile } \" ") ;
Original file line number Diff line number Diff line change 1
1
{
2
- "Logging" : {
3
- "LogLevel" : {
4
- "Default" : " Debug" ,
5
- "System" : " Information" ,
6
- "Microsoft" : " Information"
7
- }
8
- }
9
2
}
Original file line number Diff line number Diff line change 1
1
{
2
- "AllowedHosts" : " *"
2
+ "AllowedHosts" : " *" ,
3
+ "Kestrel" : {
4
+ "EndPoints" : {
5
+ "Http" : {
6
+ "Url" : " http://0.0.0.0:25080"
7
+ }
8
+ }
9
+ }
3
10
}
You can’t perform that action at this time.
0 commit comments