File tree 1 file changed +18
-0
lines changed
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,24 @@ Content-Length: 19
72
72
```
73
73
74
74
75
+ # TLS
76
+
77
+ To enable TLS support, add ` -cert ` and ` -key ` options:
78
+
79
+ ```
80
+ $ ./simple_upload_server -cert ./cert.pem -key ./key.pem root/
81
+ INFO[0000] starting up simple-upload-server
82
+ WARN[0000] token generated token=28d93c74c8589ab62b5e
83
+ INFO[0000] start listening TLS cert=./cert.pem key=./key.pem port=25443
84
+ INFO[0000] start listening ip=0.0.0.0 port=25478 root=root token=28d93c74c8589ab62b5e upload_limit=5242880
85
+ ...
86
+ ```
87
+
88
+ This server listens on ` 25443/tcp ` for TLS connections by default. This can be changed by passing ` -tlsport ` option.
89
+
90
+ NOTE: The endpoint using HTTP is still active even if TLS is enabled.
91
+
92
+
75
93
# Security
76
94
77
95
There is no Basic/Digest authentication. This app implements dead simple authentication: "security token".
You can’t perform that action at this time.
0 commit comments