1
0
Commit Graph

386 Commits

Author SHA1 Message Date
58197af85d
Added new options to .service files. Hope it won't break a program. xD 2023-08-22 18:24:02 +04:00
4e098ec665
style-src unsafe-inline was removed because it doesn't needed anymore. 2023-08-22 18:21:25 +04:00
5567de7de1
Error styling was moved out to main.css. 2023-08-22 18:20:13 +04:00
63e03f6459
Removed unused ids. 2023-08-22 18:19:47 +04:00
90837f1299
Changed logo. Removed id and classes. 2023-08-22 18:16:26 +04:00
b50a80a33d
Updated httpr package dependency to 0.3.1. 2023-08-13 04:19:14 +04:00
92212c97eb
Add time for better randomisation for a hash. 2023-08-06 07:33:34 +04:00
3f16c3e799
Removed sysusers.d/dwelling-upload.conf from Makefile. 2023-08-06 06:36:20 +04:00
34c31448bb
Shortened two sentences on an index page. 2023-08-06 04:33:09 +04:00
514c6208e2
Make available space bold. 2023-08-06 04:00:09 +04:00
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. 2023-08-06 03:06:24 +04:00
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