|
7915091b96
|
Defer srv.Stop after successful call of srv.Start.
|
2023-08-06 03:00:31 +04:00 |
|
|
f22fa1ee1d
|
Do not create a system user, use a dynamic one instead.
|
2023-08-06 02:21:02 +04:00 |
|
|
34890ff93f
|
Version was set to 23.31.1.
|
2023-08-06 02:13:56 +04:00 |
|
|
fea3e7104d
|
In nginx.conf added an onion domain to a server_name. And a space between it and access_log.
|
2023-08-06 02:12:15 +04:00 |
|
|
2dc523271c
|
In dwelling-upload.service changed a formatting of one line to reduce its length. :)
|
2023-08-06 02:05:30 +04:00 |
|
|
4048390bfb
|
Changed handlers.Error() signature to be like http.Error()'s one.
|
2023-08-06 02:02:58 +04:00 |
|
|
6106e817cf
|
In utils.NetworkType() added Yggdrasil.
|
2023-08-06 01:59:25 +04:00 |
|
|
30ffa6805b
|
Omit IP if a network type is not www or yggdrasil.
|
2023-08-06 01:54:01 +04:00 |
|
|
17781c5445
|
Fixed copy-pasta. log.Fatalln() replaced with return err.
|
2023-08-06 01:42:56 +04:00 |
|
|
3b15052330
|
Setup upload dir watcher at the last step.
|
2023-08-06 01:34:55 +04:00 |
|
|
271c27f4ad
|
In dwelling-upload's main changed aliases for imports.
|
2023-08-06 01:28:55 +04:00 |
|
|
532e8d9da6
|
Code for determining of network type was moved to HttpServer's Start() func.
|
2023-08-06 01:26:41 +04:00 |
|
|
72d3104150
|
Explicit check for address type, now check if an addr passed is IPv6. Otherwise, network var will remain empty.
|
2023-08-06 01:21:14 +04:00 |
|
|
5bd6120ae5
|
In var () section removed unnecessary type declarations.
|
2023-08-06 01:18:41 +04:00 |
|
|
d919d00cc0
|
In dwelling-upload-clean converted an expiry var to time.Duration. Added an 'h' unit in a .service to represent hours.
|
2023-08-05 19:28:05 +04:00 |
|
|
1e30e5e8ff
|
Removed unnecessary .center class from sections. | replaced by p.center for space left.
|
2023-08-05 06:51:39 +04:00 |
|
|
c486acef79
|
Moved available space next to an Upload button.
|
2023-08-05 06:34:21 +04:00 |
|
|
aaa6aca743
|
Removing -buildmode=pie flag, it causes permission denied 203/EXEC failure when starting a service.
|
2023-08-05 06:27:48 +04:00 |
|
|
d251d174e3
|
Added a set of export CGO_*FLAGS statements recommended in https://wiki.archlinux.org/title/Go_package_guidelines
|
2023-08-05 06:02:54 +04:00 |
|
|
82915fb300
|
Added some necessary flags for go build.
|
2023-08-05 06:01:10 +04:00 |
|
|
e7e45259ba
|
Oh, in os.Stat() path.Join() is needed, since DirEntry.Name() contains only name of a file itself, not a full path.
|
2023-08-05 05:07:59 +04:00 |
|
|
df8baf153b
|
Replaced deprecated ioutil.ReadDir() with os.ReadDir() + os.Stat() in filesize.go.
|
2023-08-05 05:03:34 +04:00 |
|
|
b513a5ff1d
|
Found that in an Error() func status code wasn't set. Fixed that.
|
2023-08-05 04:54:52 +04:00 |
|
|
c2278fdd2e
|
A little refactoring in handlers.go.
|
2023-08-05 04:46:25 +04:00 |
|
|
df3c5e0678
|
Oops, use Error() func instead of direct call of ErrorXXX().
|
2023-08-05 04:26:11 +04:00 |
|
|
266cf9dbb0
|
Removed nospace.jade. Replaced by errorXXX.jade.
|
2023-08-05 04:22:27 +04:00 |
|
|
6b56037ded
|
Updated httpr dependency.
|
2023-08-05 04:17:17 +04:00 |
|
|
9e20c424be
|
Version was set to 23.31.0.
|
2023-08-01 16:52:08 +04:00 |
|
|
d77552049a
|
In PKGBUILD build() removed spaces between lines.
|
2023-08-01 16:51:30 +04:00 |
|
|
59e0629597
|
On index page only available storage is shown.
|
2023-08-01 16:50:39 +04:00 |
|
|
6b8a7dffc7
|
In .service files flags was replaced by the new ones.
|
2023-08-01 16:46:50 +04:00 |
|
|
084872be61
|
Returned Onion-Location header, and removed a separate I2P listen statement.
|
2023-08-01 16:44:30 +04:00 |
|
|
5590b0ad71
|
In upload service flags was renamed.
|
2023-08-01 16:43:41 +04:00 |
|
|
e430f0bfc9
|
ioutil package is deprecated, so its ReadDir() was replaced by os. ReadDir() and os.Stat(). Also fixed existing error messages a little.
|
2023-08-01 16:42:39 +04:00 |
|
|
1c7f03053f
|
In clean service: args are renamed: upload-dir -> dir, keep-for -> expiry.
|
2023-08-01 16:40:31 +04:00 |
|
|
7e4af6b977
|
Version was changed to 23.24.0.
|
2023-06-12 23:10:14 +04:00 |
|
|
5c6cf2586f
|
Removed Privacy statements section and added a link to it on a main site.
|
2023-06-12 23:09:03 +04:00 |
|
|
9c72131dc8
|
Version patch part increased to 3. Nothing changed but a version of used httpr router.
|
2023-05-28 04:23:32 +04:00 |
|
|
d81a29bd5b
|
Removed no more needed func AssetsFS.
|
2023-05-28 04:18:50 +04:00 |
|
|
d5052994b8
|
Updated httpr to v0.2.0.
|
2023-05-28 04:14:48 +04:00 |
|
|
2d4169245c
|
Reorginised the main()'s code a little.
|
2023-05-27 19:51:29 +04:00 |
|
|
949c2e68c8
|
Patch part of version was incremented.
|
2023-05-27 19:39:18 +04:00 |
|
|
3799c1d178
|
Fixed a comment in dwelling-upload.service.
|
2023-05-27 19:36:30 +04:00 |
|
|
99adb7fbf8
|
Made max. size and hours bold.
|
2023-05-27 19:33:02 +04:00 |
|
|
aa3ca9a4ad
|
Free space section was renamed to more logical occupied space.
|
2023-05-27 19:32:44 +04:00 |
|
|
96fd7e5883
|
Added links that lead to index page of a service in errorXXX and nospace templates.
|
2023-05-27 19:31:52 +04:00 |
|
|
31f84721ad
|
Status 204 prevents a Deleted page rendering.
|
2023-05-27 19:31:11 +04:00 |
|
|
e695becbcd
|
Actually, ParseAddrPort is needed, since we give ip:port.
|
2023-05-27 19:30:28 +04:00 |
|
|
114d3cc931
|
Oh, with ioutil.ReadDir subtracting of 4096 isn't needed.
|
2023-05-26 22:41:48 +04:00 |
|
|
9a889e746a
|
Saved 2 lines by deferring each of two calls instead of wrapping in an anonymous func.
Also, removed old cURL handling in an Upload handler.
|
2023-05-26 22:17:03 +04:00 |
|