Commit Graph

56 Commits

Author SHA1 Message Date
a4cc579fe3 refactor: Redirect to / in case of unmatched path. 2023-09-22 22:57:37 +03:00
3941d4761d refactor: apkupdater: Lock on only critical section 2023-09-22 01:31:49 +03:00
fb405dc55c cleanup 2023-09-21 17:10:06 +03:00
0cc4a8a92f refactor: scale down image. Remove tooltip on link label 2023-09-21 16:03:42 +03:00
be2daeb535 fix: 404 if path is undefined 2023-09-20 16:18:38 +03:00
e3c83d0801 html: head: canonical link 2023-09-16 13:49:54 +03:00
7b2112bfe0 feat: dual panel/gird, with image 2023-09-16 05:23:18 +03:00
36b012ac92 refactor: move route handlers to named functions 2023-09-16 05:09:44 +03:00
e9aafd0cea feat: package updater
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2023-09-16 04:56:32 +03:00
cd1ea5495e apkupdater: Implement Alpine Update()
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2023-09-16 04:55:16 +03:00
76312192ae Containerfile: add go version substitutes
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2023-09-16 04:52:18 +03:00
fea50ca37e apkupdater 2023-09-16 00:53:53 +03:00
c36275d07b fix: increase RW http server timeouts, since now we stream the content:
A download of 500MB on 40Mb/s could never finish
2023-09-15 18:49:12 +03:00
9532b70458 feat: Set content length header for comletion and time estiamte on
browsers
2023-09-15 18:48:45 +03:00
aef6deb8d6 feat: favicon 2023-09-14 22:26:06 +03:00
4a1a254026 feat: direct download with filename:
- Fixed issues with escaping query in Hx-Redirect
	header.

	- GetFilename functions that runs concurrently
	since it takes time for yt-dlp to fetch info.
	Investigate getting url and name in one execution.

	- Directly redirects to /download-direct for a
	streaming response of the file. I am observing
	that the request on the server side to content
	provider does not wait for the full download.
	instead, it is streamed in a buffer, that is
	also copied at the same time to the user response
	as partial. Pretty cool. Not much memory overhead,
	which was the main concern.

Signed-off-by: HeshamTB <hishaminv@gmail.com>
2023-09-14 21:49:17 +03:00
61502ea2f6 feat: direct download via streaming 2023-09-14 20:13:32 +03:00
d50e88d1f9 fix: use params in cmd... 2023-09-14 19:45:33 +03:00
6e61c39f51 fix previous 2023-09-14 19:36:50 +03:00
2dee4917d0 feat: only use '-f 22' on yt links 2023-09-14 19:35:10 +03:00
8fd3811a72 fix: sitemap at root 2023-09-13 18:23:15 +03:00
98c7ee4b61
feat: sitemap and updated robots
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2023-09-13 18:09:20 +03:00
95e4593258 fix: new domain ad 2023-09-13 18:03:00 +03:00
6b0ede1005 Revert "feat: Container healthcheck"
This reverts commit aebdab79b6.
2023-09-13 16:48:02 +03:00
aebdab79b6 feat: Container healthcheck 2023-09-13 16:46:46 +03:00
797d39e847 [WIP] feat: perpping for audio 2023-09-13 16:16:29 +03:00
d79acda770 templates: banner 2023-09-13 15:35:57 +03:00
f4a348b00f feat: serve robots.txt, subtitle 2023-09-13 14:52:57 +03:00
b19919399f feat: tooltip on url field, with message on validation 2023-09-13 13:57:56 +03:00
13269a7b84 feat: better url validation:
- Do not accept redirects. Usually
	on yt at least, redirect means the link
	is invalid. Hence, it redirects to the home
	page.

	- This is tested and it works well. trust.

Signed-off-by: HeshamTB <hishaminv@gmail.com>
2023-09-13 13:43:44 +03:00
b88ca836ef feat: basic active url validation:
- Does not check if the link is actually
	a video. Change isValidURL() for better
	validation

Signed-off-by: HeshamTB <hishaminv@gmail.com>
2023-09-13 13:13:13 +03:00
72e6543415 feat: Page Title heading, links/paths to assets/css do not need full URI 2023-09-13 12:02:45 +03:00
2feda54fe4 Revert "templates: download: force css to point to https"
This reverts commit 3c5aa3d575.

	isTLS is now set correctly so use it in html templates for assets
	and media
2023-09-13 11:37:28 +03:00
857c4ed001 feat: read env for TLS to set schemas for assets/css 2023-09-13 11:32:47 +03:00
bcd8c1333d fix: remove unused html 2023-09-13 11:27:42 +03:00
61fa4fe192 feat: assetsFS for serving images and media 2023-09-13 11:26:23 +03:00
b134705abc templates: meta tags 2023-09-13 11:18:54 +03:00
aabe1a2902 adash2 2023-09-12 01:25:24 +03:00
6ab3fb3f9c templates: adcash 2023-09-12 01:12:20 +03:00
9336f0531b fix: remove trace print 2023-09-12 01:03:17 +03:00
f3de7a0a41 Containerfile: download yt-dlp in image 2023-09-12 00:57:40 +03:00
1fd65a5827 feat: Logger: log X-Real-IP when behind rProxy 2023-09-12 00:52:54 +03:00
3c5aa3d575 templates: download: force css to point to https 2023-09-12 00:47:58 +03:00
4196258cc4 c o n ttt ain rri zzee 2023-09-12 00:28:15 +03:00
56ffe567a8 html: meta tags for SEO 2023-09-12 00:10:04 +03:00
b82b70d911 feat: added yt for yt-dlp logic within the app 2023-09-12 00:09:24 +03:00
d047788835 fix: download link was incorrect. Added hint for saving file 2023-09-11 23:42:58 +03:00
84c85c98fe feat: display error message 2023-09-11 23:27:18 +03:00
c8b706aee6 feat: embed static files and templates in binary 2023-09-11 21:44:41 +03:00
98c98d16b4 [WIP] prep for embedded files 2 2023-09-11 21:10:58 +03:00