File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ RUN apt-get update && \
1919 # - Remove default host keys
2020 rm -f /etc/ssh/ssh_host_*key*
2121WORKDIR /app
22- EXPOSE 22 80
22+ EXPOSE 22 25080
2323
2424FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build
2525WORKDIR /src
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk.Web" >
22
33 <PropertyGroup >
4- <TargetFramework >netcoreapp3.0 </TargetFramework >
4+ <TargetFramework >netcoreapp3.1 </TargetFramework >
55 <DockerDefaultTargetOS >Linux</DockerDefaultTargetOS >
66 <DockerfileTag >emberstack/sftp:dev</DockerfileTag >
77 <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()
100100 var eventsScriptBuilder = new StringBuilder ( ) ;
101101 eventsScriptBuilder . AppendLine ( "#!/bin/sh" ) ;
102102 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\" " ) ;
104104 await File . WriteAllTextAsync ( hookScriptFile , eventsScriptBuilder . ToString ( ) ) ;
105105 await ProcessUtil . QuickRun ( "chown" , $ "root:root \" { hookScriptFile } \" ") ;
106106 await ProcessUtil . QuickRun ( "chmod" , $ "+x \" { hookScriptFile } \" ") ;
Original file line number Diff line number Diff line change 11{
2- "Logging" : {
3- "LogLevel" : {
4- "Default" : " Debug" ,
5- "System" : " Information" ,
6- "Microsoft" : " Information"
7- }
8- }
92}
Original file line number Diff line number Diff line change 11{
2- "AllowedHosts" : " *"
2+ "AllowedHosts" : " *" ,
3+ "Kestrel" : {
4+ "EndPoints" : {
5+ "Http" : {
6+ "Url" : " http://0.0.0.0:25080"
7+ }
8+ }
9+ }
310}
You can’t perform that action at this time.
0 commit comments