This website requires JavaScript.
7218fbc27f
Version set to 23.34.0.
master
v23.34.0
Alexander "Arav" Andreev
2023-08-23 04:04:22 +0400
5148202a0f
A small reorganisation in main.css.
Alexander "Arav" Andreev
2023-08-23 03:48:52 +0400
1edba52d32
Disallow all pages but the index.
Alexander "Arav" Andreev
2023-08-23 03:43:35 +0400
9c42144b45
Updated index.jade.
Alexander "Arav" Andreev
2023-08-22 18:46:02 +0400
58197af85d
Added new options to .service files. Hope it won't break a program. xD
Alexander "Arav" Andreev
2023-08-22 18:24:02 +0400
4e098ec665
style-src unsafe-inline was removed because it doesn't needed anymore.
Alexander "Arav" Andreev
2023-08-22 18:21:25 +0400
5567de7de1
Error styling was moved out to main.css.
Alexander "Arav" Andreev
2023-08-22 18:20:13 +0400
63e03f6459
Removed unused ids.
Alexander "Arav" Andreev
2023-08-22 18:19:47 +0400
90837f1299
Changed logo. Removed id and classes.
Alexander "Arav" Andreev
2023-08-22 18:16:26 +0400
b50a80a33d
Updated httpr package dependency to 0.3.1.
Alexander "Arav" Andreev
2023-08-13 04:19:14 +0400
92212c97eb
Add time for better randomisation for a hash.
v23.31.1
Alexander "Arav" Andreev
2023-08-06 07:33:34 +0400
3f16c3e799
Removed sysusers.d/dwelling-upload.conf from Makefile.
Alexander "Arav" Andreev
2023-08-06 06:36:20 +0400
34c31448bb
Shortened two sentences on an index page.
Alexander "Arav" Andreev
2023-08-06 04:33:09 +0400
514c6208e2
Make available space bold.
Alexander "Arav" Andreev
2023-08-06 04:00:09 +0400
88b989bfbb
Fixed new code for HttpServer. Had to add net.Addr field to the struct to hold addr and network to use in Stop() method.
Alexander "Arav" Andreev
2023-08-06 03:06:24 +0400
7915091b96
Defer srv.Stop after successful call of srv.Start.
Alexander "Arav" Andreev
2023-08-06 03:00:31 +0400
f22fa1ee1d
Do not create a system user, use a dynamic one instead.
Alexander "Arav" Andreev
2023-08-06 02:21:02 +0400
34890ff93f
Version was set to 23.31.1.
Alexander "Arav" Andreev
2023-08-06 02:13:56 +0400
fea3e7104d
In nginx.conf added an onion domain to a server_name. And a space between it and access_log.
Alexander "Arav" Andreev
2023-08-06 02:12:15 +0400
2dc523271c
In dwelling-upload.service changed a formatting of one line to reduce its length. :)
Alexander "Arav" Andreev
2023-08-06 02:05:30 +0400
4048390bfb
Changed handlers.Error() signature to be like http.Error()'s one.
Alexander "Arav" Andreev
2023-08-06 02:02:58 +0400
6106e817cf
In utils.NetworkType() added Yggdrasil.
Alexander "Arav" Andreev
2023-08-06 01:59:25 +0400
30ffa6805b
Omit IP if a network type is not www or yggdrasil.
Alexander "Arav" Andreev
2023-08-06 01:54:01 +0400
17781c5445
Fixed copy-pasta. log.Fatalln() replaced with return err.
Alexander "Arav" Andreev
2023-08-06 01:42:56 +0400
3b15052330
Setup upload dir watcher at the last step.
Alexander "Arav" Andreev
2023-08-06 01:34:55 +0400
271c27f4ad
In dwelling-upload's main changed aliases for imports.
Alexander "Arav" Andreev
2023-08-06 01:28:55 +0400
532e8d9da6
Code for determining of network type was moved to HttpServer's Start() func.
Alexander "Arav" Andreev
2023-08-06 01:26:41 +0400
72d3104150
Explicit check for address type, now check if an addr passed is IPv6. Otherwise, network var will remain empty.
Alexander "Arav" Andreev
2023-08-06 01:21:14 +0400
5bd6120ae5
In var () section removed unnecessary type declarations.
Alexander "Arav" Andreev
2023-08-06 01:18:41 +0400
d919d00cc0
In dwelling-upload-clean converted an expiry var to time.Duration. Added an 'h' unit in a .service to represent hours.
Alexander "Arav" Andreev
2023-08-05 19:28:05 +0400
1e30e5e8ff
Removed unnecessary .center class from sections. | replaced by p.center for space left.
v23.31.0
Alexander "Arav" Andreev
2023-08-05 06:51:39 +0400
c486acef79
Moved available space next to an Upload button.
Alexander "Arav" Andreev
2023-08-05 06:34:21 +0400
aaa6aca743
Removing -buildmode=pie flag, it causes permission denied 203/EXEC failure when starting a service.
Alexander "Arav" Andreev
2023-08-05 06:27:48 +0400
d251d174e3
Added a set of export CGO_*FLAGS statements recommended in https://wiki.archlinux.org/title/Go_package_guidelines
Alexander "Arav" Andreev
2023-08-05 06:02:54 +0400
82915fb300
Added some necessary flags for go build.
Alexander "Arav" Andreev
2023-08-05 06:01:10 +0400
e7e45259ba
Oh, in os.Stat() path.Join() is needed, since DirEntry.Name() contains only name of a file itself, not a full path.
Alexander "Arav" Andreev
2023-08-05 05:07:59 +0400
df8baf153b
Replaced deprecated ioutil.ReadDir() with os.ReadDir() + os.Stat() in filesize.go.
Alexander "Arav" Andreev
2023-08-05 05:03:34 +0400
b513a5ff1d
Found that in an Error() func status code wasn't set. Fixed that.
Alexander "Arav" Andreev
2023-08-05 04:54:52 +0400
c2278fdd2e
A little refactoring in handlers.go.
Alexander "Arav" Andreev
2023-08-05 04:46:25 +0400
df3c5e0678
Oops, use Error() func instead of direct call of ErrorXXX().
Alexander "Arav" Andreev
2023-08-05 04:26:11 +0400
266cf9dbb0
Removed nospace.jade. Replaced by errorXXX.jade.
Alexander "Arav" Andreev
2023-08-05 04:22:27 +0400
6b56037ded
Updated httpr dependency.
Alexander "Arav" Andreev
2023-08-05 04:17:17 +0400
9e20c424be
Version was set to 23.31.0.
Alexander "Arav" Andreev
2023-08-01 16:52:08 +0400
d77552049a
In PKGBUILD build() removed spaces between lines.
Alexander "Arav" Andreev
2023-08-01 16:51:30 +0400
59e0629597
On index page only available storage is shown.
Alexander "Arav" Andreev
2023-08-01 16:50:39 +0400
6b8a7dffc7
In .service files flags was replaced by the new ones.
Alexander "Arav" Andreev
2023-08-01 16:46:50 +0400
084872be61
Returned Onion-Location header, and removed a separate I2P listen statement.
Alexander "Arav" Andreev
2023-08-01 16:44:30 +0400
5590b0ad71
In upload service flags was renamed.
Alexander "Arav" Andreev
2023-08-01 16:43:41 +0400
e430f0bfc9
ioutil package is deprecated, so its ReadDir() was replaced by os. ReadDir() and os.Stat(). Also fixed existing error messages a little.
Alexander "Arav" Andreev
2023-08-01 16:42:39 +0400
1c7f03053f
In clean service: args are renamed: upload-dir -> dir, keep-for -> expiry.
Alexander "Arav" Andreev
2023-08-01 16:40:31 +0400
7e4af6b977
Version was changed to 23.24.0.
v23.24.0
Alexander "Arav" Andreev
2023-06-12 23:10:14 +0400
5c6cf2586f
Removed Privacy statements section and added a link to it on a main site.
Alexander "Arav" Andreev
2023-06-12 23:09:03 +0400
9c72131dc8
Version patch part increased to 3. Nothing changed but a version of used httpr router.
v23.21.3
Alexander "Arav" Andreev
2023-05-28 04:23:32 +0400
d81a29bd5b
Removed no more needed func AssetsFS.
Alexander "Arav" Andreev
2023-05-28 04:18:50 +0400
d5052994b8
Updated httpr to v0.2.0.
Alexander "Arav" Andreev
2023-05-28 04:14:48 +0400
2d4169245c
Reorginised the main()'s code a little.
Alexander "Arav" Andreev
2023-05-27 19:51:29 +0400
949c2e68c8
Patch part of version was incremented.
Alexander "Arav" Andreev
2023-05-27 19:39:18 +0400
3799c1d178
Fixed a comment in dwelling-upload.service.
Alexander "Arav" Andreev
2023-05-27 19:36:30 +0400
99adb7fbf8
Made max. size and hours bold.
Alexander "Arav" Andreev
2023-05-27 19:33:02 +0400
aa3ca9a4ad
Free space section was renamed to more logical occupied space.
Alexander "Arav" Andreev
2023-05-27 19:32:44 +0400
96fd7e5883
Added links that lead to index page of a service in errorXXX and nospace templates.
Alexander "Arav" Andreev
2023-05-27 19:31:52 +0400
31f84721ad
Status 204 prevents a Deleted page rendering.
Alexander "Arav" Andreev
2023-05-27 19:31:11 +0400
e695becbcd
Actually, ParseAddrPort is needed, since we give ip:port.
Alexander "Arav" Andreev
2023-05-27 19:30:28 +0400
114d3cc931
Oh, with ioutil.ReadDir subtracting of 4096 isn't needed.
v23.21.1
Alexander "Arav" Andreev
2023-05-26 22:41:48 +0400
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.
Alexander "Arav" Andreev
2023-05-26 22:17:03 +0400
345869608e
ParseAddrPort replaced with ParseAddr. Removed !ap.IsValid() since it is already done in ParseAddr. Also there is no need to additionally check if an address is IPv6. If address is neither v4 or v6, then ParseAddr will return an error.
Alexander "Arav" Andreev
2023-05-26 17:25:36 +0400
d94030a4e8
In ConvertFileSize code was cosmetically changed a little.
Alexander "Arav" Andreev
2023-05-26 17:23:09 +0400
54f87951c1
In DirectorySize() filepath.Walk was replaced by ioutil.ReadDir to shorten the code.
Alexander "Arav" Andreev
2023-05-26 17:22:21 +0400
da001dbe39
To decrease nesting go directive was removed.
Alexander "Arav" Andreev
2023-05-26 17:21:13 +0400
51494e87be
Patch version part was incremented.
Alexander "Arav" Andreev
2023-05-26 13:01:49 +0400
92710f7f5a
Cosmetic changes in flags.
Alexander "Arav" Andreev
2023-05-26 13:01:15 +0400
2abf5a9d7f
Fixed default upload dir path in progs as well.
Alexander "Arav" Andreev
2023-05-26 12:51:32 +0400
860d719cdd
Fixed a typo in upload dir path.
Alexander "Arav" Andreev
2023-05-26 12:49:18 +0400
30513b3300
Removed go:generate for error404.jade.
v23.21.0
Alexander "Arav" Andreev
2023-05-26 04:40:58 +0400
b695d8128d
Removed disallow of /f/ from robots.txt.
Alexander "Arav" Andreev
2023-05-26 04:38:14 +0400
85f853f48e
Removed /f/ path part in upload handler.
Alexander "Arav" Andreev
2023-05-26 04:37:07 +0400
dd22577521
Removed /f/ path part at index.jade.
Alexander "Arav" Andreev
2023-05-26 04:36:36 +0400
1e4836ca86
Made errorMsg into p, so it get to the next line.
Alexander "Arav" Andreev
2023-05-26 04:36:07 +0400
e47e592b01
julienschmidt/httprouter was removed and my httpr added to go.mod and go.sum.
Alexander "Arav" Andreev
2023-05-26 04:31:05 +0400
38e6813d11
Made use of my own httpr router in main.
Alexander "Arav" Andreev
2023-05-26 04:30:29 +0400
b18338e4e1
Made use of my own httpr router. Replace GetURLParam with httpr.Param.
Alexander "Arav" Andreev
2023-05-26 04:28:38 +0400
0677147b63
Removed httprouter dependency from HTTP server.
Alexander "Arav" Andreev
2023-05-26 04:27:21 +0400
a9e230ad61
Removed unneeded error404.jade.
Alexander "Arav" Andreev
2023-05-26 04:26:27 +0400
a7972b8e13
A custom logger was removed.
Alexander "Arav" Andreev
2023-05-25 02:56:57 +0400
c5faef303b
In service replaced args for ExecStart= to the new ones.
Alexander "Arav" Andreev
2023-05-25 02:32:04 +0400
5101a892de
Made AssetsFS() a standalone func.
Alexander "Arav" Andreev
2023-05-25 02:31:21 +0400
8eb8a24a23
Added copytruncate to truncate a file instead of recreating. Removed script to send SIGHUP since it is not used anymore.
Alexander "Arav" Andreev
2023-05-25 02:27:03 +0400
afbaad971a
Instantiate log file handle and an instance of log.Logger. Also remove reopen SIGHUP handler. Log file will be truncated with logrotate instead of recreating.
Alexander "Arav" Andreev
2023-05-25 02:25:43 +0400
fccb81d3a5
Added | separator to the start of all log.Printf() to separate date and action.
Alexander "Arav" Andreev
2023-05-25 02:24:00 +0400
3327b30d12
Replaced logging.Logger with std log.Logger.
Alexander "Arav" Andreev
2023-05-25 02:22:56 +0400
59544da625
Removed configPath flag from main.
Alexander "Arav" Andreev
2023-05-25 02:17:27 +0400
85529890a5
Oh, code for deletion statistics also should be purged.
Alexander "Arav" Andreev
2023-05-25 02:13:33 +0400
9510027d05
Replace flags in a clean service with the new ones.
Alexander "Arav" Andreev
2023-05-25 02:11:20 +0400
55ba1fd67d
Do not log how much files was deleted. Useless info, keep only error logs. And removed configPath flag as well.
Alexander "Arav" Andreev
2023-05-25 02:10:35 +0400
203c0158ce
Install gen-salt.sh as dwelling-upload-gen-salt.
Alexander "Arav" Andreev
2023-05-25 00:58:02 +0400
282a00c328
Found that daemon-reload needs to be called when manually edit such files.
Alexander "Arav" Andreev
2023-05-25 00:57:36 +0400
99eed674fc
Since we now run setup command from script, this caution doesn't needed.
Alexander "Arav" Andreev
2023-05-25 00:53:35 +0400
cf7e240e8a
Let's add the creds to override.conf, actually. And it is safe to run systemd-creds setup, since it doesn't rewrite an existing key.
Alexander "Arav" Andreev
2023-05-25 00:52:51 +0400
705a4ede76
Updated comments in upload.service.
Alexander "Arav" Andreev
2023-05-25 00:49:30 +0400
dab675474a
Set default NotFound handler.
Alexander "Arav" Andreev
2023-05-25 00:47:32 +0400