@@ -13,8 +13,9 @@ public class Program
13
13
public static void Main ( string [ ] args )
14
14
{
15
15
Console . WriteLine ( "*********************************************************************" ) ;
16
- Console . WriteLine ( "TETRIFACT : server starting" ) ;
16
+ Console . WriteLine ( "TETRIFACT server starting" ) ;
17
17
Console . WriteLine ( "" ) ;
18
+
18
19
CreateWebHostBuilder ( args ) . Build ( ) . Run ( ) ;
19
20
}
20
21
@@ -34,7 +35,7 @@ public static IWebHostBuilder CreateWebHostBuilder(string[] args)
34
35
} )
35
36
. UseStartup < Startup > ( ) ;
36
37
37
- bool isIIS = Environment . GetEnvironmentVariable ( "IS_IIS " ) == "true" ;
38
+ bool use_IIS = Environment . GetEnvironmentVariable ( "TETRIFACT_USE_IIS " ) == "true" ;
38
39
bool useHTTPS = EnvironmentArgsHelper . GetAsBool ( "TETRIFACT_USE_HTTPS" ) ;
39
40
string httpsCertPath = Environment . GetEnvironmentVariable ( "TETRIFACT_HTTPS_CERT_PATH" ) ;
40
41
int port = EnvironmentArgsHelper . GetAsInt ( "TETRIFACT_PORT" , 5000 ) ;
@@ -44,7 +45,7 @@ public static IWebHostBuilder CreateWebHostBuilder(string[] args)
44
45
useHTTPS = false ;
45
46
}
46
47
47
- if ( ! isIIS )
48
+ if ( ! use_IIS )
48
49
{
49
50
builder . UseKestrel ( options =>
50
51
{
@@ -55,14 +56,15 @@ public static IWebHostBuilder CreateWebHostBuilder(string[] args)
55
56
if ( useHTTPS )
56
57
listenOptions . UseHttps ( httpsCertPath ) ;
57
58
} ) ;
58
- Console . WriteLine ( "Port bound. " ) ;
59
+ Console . WriteLine ( $ "Port bound ( { Global . StartTimeUtc . Ago ( true ) } ) ") ;
59
60
60
61
// SECURITY WARNING : the limit on attachment part size is removed to support large builds.
61
62
options . Limits . MaxRequestBodySize = long . MaxValue ;
62
63
options . Limits . MaxRequestBufferSize = long . MaxValue ;
63
64
options . Limits . MaxRequestLineSize = int . MaxValue ;
64
65
} ) ;
65
- Console . WriteLine ( "Kestrel loaded." ) ;
66
+
67
+ Console . WriteLine ( $ "Kestrel loaded ({ Global . StartTimeUtc . Ago ( true ) } )") ;
66
68
}
67
69
68
70
return builder ;
0 commit comments