@@ -31,28 +31,37 @@ pub struct Opts {
31
31
#[ clap( long, default_value = "localhost" , env = "ATOMIC_DOMAIN" ) ]
32
32
pub domain : String ,
33
33
34
- /// The contact mail address for Let's Encrypt HTTPS setup
35
- #[ clap( long, env = "ATOMIC_EMAIL" ) ]
36
- pub email : Option < String > ,
37
-
38
34
// 9.883 is decimal for the `⚛` character.
39
35
/// The port where the HTTP app is available. Set to 80 if you want this to be available on the network.
40
36
#[ clap( short, long, default_value = "9883" , env = "ATOMIC_PORT" ) ]
41
37
pub port : u32 ,
42
38
43
- /// The port where the HTTPS app is available. Sert to 443 if you want this to be available on the network.
44
- #[ clap( long, default_value = "9884" , env = "ATOMIC_PORT_HTTPS" ) ]
39
+ /// The port where the HTTPS app is available. Set to 443 if you want this to be available on the network.
40
+ #[ clap(
41
+ long,
42
+ default_value = "9884" ,
43
+ env = "ATOMIC_PORT_HTTPS" ,
44
+ requires = "https"
45
+ ) ]
45
46
pub port_https : u32 ,
46
47
47
48
/// The IP address of the server. Set to :: if you want this to be available to other devices on your network.
48
49
#[ clap( long, default_value = "::" , env = "ATOMIC_IP" ) ]
49
50
pub ip : IpAddr ,
50
51
51
52
/// Use HTTPS instead of HTTP.
52
- /// Will get certificates from LetsEncrypt.
53
+ /// Will get certificates from LetsEncrypt fully automated .
53
54
#[ clap( long, env = "ATOMIC_HTTPS" ) ]
54
55
pub https : bool ,
55
56
57
+ /// Initializes DNS-01 challenge for LetsEncrypt. Use this if you want to use subdomains.
58
+ #[ clap( long, env = "ATOMIC_HTTPS_DNS" , requires = "https" ) ]
59
+ pub https_dns : bool ,
60
+
61
+ /// The contact mail address for Let's Encrypt HTTPS setup
62
+ #[ clap( long, env = "ATOMIC_EMAIL" ) ]
63
+ pub email : Option < String > ,
64
+
56
65
/// Endpoint where the front-end assets are hosted
57
66
#[ clap( long, default_value = "/app_assets" , env = "ATOMIC_ASSET_URL" ) ]
58
67
pub asset_url : String ,
@@ -86,6 +95,7 @@ pub struct Opts {
86
95
pub log_level : LogLevel ,
87
96
88
97
/// How you want to trace what's going on with the server. Useful for monitoring performance and errors in production.
98
+ /// Combine with `log_level` to get more or less data (`trace` is the most verbose)
89
99
#[ clap( arg_enum, long, env = "ATOMIC_TRACING" , default_value = "stdout" ) ]
90
100
pub trace : Tracing ,
91
101
}
0 commit comments