Archived
1
Fork 0
forked from Korbs/4get
Commit graph

142 commits

Author SHA1 Message Date
throwaway
b7cc53c156 allow docker container to run without ssl certificates (#14)
if certificate files are not mounted to /etc/4get/certs then remove ssl virtual host in /etc/apache2/httpd.conf and listen on port 80
also change references "luuul/4get:1.0.0" to "luuul/4get:latest"

Reviewed-on: https://git.lolcat.ca/lolcat/4get/pulls/14
Co-authored-by: throwaway <developerthrowaway@protonmail.com>
Co-committed-by: throwaway <developerthrowaway@protonmail.com>
2023-09-22 16:20:39 -05:00
cynic
be8546bdf5 make 'oracles' feature backwards compatible with php 7.4 (#13)
adds implementations of `str_contains` and `str_starts_with` that are used if the functions are not already defined. this should enable 4get to work on both php 7.4 and php 8.*

my instance is currently on 7.4.33, and you can see the oracles working here:
[calc.php](https://4get.silly.computer/web?s=2%2B4*(2^2))
[encoder.php](https://4get.silly.computer/web?s=md5+hamburger)
[numerics.php](https://4get.silly.computer/web?s=0xf0f0f)
[time.php](https://4get.silly.computer/web?s=what+is+the+time+right+now+tz%253Aest)

Reviewed-on: https://git.lolcat.ca/lolcat/4get/pulls/13
Co-authored-by: cynic <admin@cynic.moe>
Co-committed-by: cynic <admin@cynic.moe>
2023-09-14 19:10:13 -05:00
cynic
8762d68466 add structure for `Oracles' (special answers depending on queries + a few implementations (#10)
incl. a calculator, a hash encoder + rot13 and b64!, and a "what time is it" with timezone selection

frontend injected in $payload["left"] in web.php

you can see this live [on my instance](https://4get.silly.computer/web?s=7%2B8(9%5E2)&scraper=brave&nsfw=yes) (there are some issues that aren't related to this PR. favicons, etc. I'll fix them later.)

Reviewed-on: https://git.lolcat.ca/lolcat/4get/pulls/10
Co-authored-by: cynic <admin@cynic.moe>
Co-committed-by: cynic <admin@cynic.moe>
2023-09-13 22:24:02 -05:00
lolcat
d312674df7 forgot version num 2023-09-13 09:22:20 -04:00
lolcat
455d4d508b Merge branch 'master' of https://git.lolcat.ca/lolcat/4get
i dont know what im doing i fucking hate git
2023-09-13 09:02:46 -04:00
lolcat
edc42ea35d added autocomplete 2023-09-13 09:01:23 -04:00
throwaway
24a00eb2e2 add docker-compose.yaml and instructions (#12)
add docker-compose.yaml and instructions

Reviewed-on: https://git.lolcat.ca/lolcat/4get/pulls/12
Co-authored-by: throwaway <developerthrowaway@protonmail.com>
Co-committed-by: throwaway <developerthrowaway@protonmail.com>
2023-09-12 21:43:31 -05:00
lolcat
71a61304b0 piss 2023-09-09 21:48:44 -04:00
lolcat
9964cdaf81 more brave fixes 2023-09-09 21:45:07 -04:00
lolcat
bcbf5dd06b thumbnail fix on brave 2023-09-08 23:32:54 -04:00
lolcat
05cd47016b oy vey 2023-09-06 21:43:29 -04:00
lolcat
9d42720f7d added more begging to about section 2023-09-06 21:35:41 -04:00
lolcat
e7d7bde7b5 and i forgot this file, alzheimers hit me again 2023-09-06 08:59:29 -04:00
lolcat
3f0dbba5b3 ok this is the last fuckup i make uhgghuhguwhguiwbehgf 2023-09-06 08:54:13 -04:00
lolcat
f7232030c3 aaand forgot that 2023-09-06 08:52:31 -04:00
lolcat
9fcbeb052b lol forgot that 2023-09-06 08:49:11 -04:00
lolcat
cd98d1c69f fixed brave spelling and other things 2023-09-06 08:43:22 -04:00
lolcat
5b8c9eaed7 security fix shieet 2023-09-04 10:17:08 -04:00
lolcat
38b97a26e5 accidently broke news 2023-09-04 00:44:04 -04:00
lolcat
d90d81662a i always forget the fucking .php 2023-09-03 22:50:43 -04:00
lolcat
d0a4e73846 readme 2023-09-03 22:45:53 -04:00
lolcat
bef83bb3c8 readme 2023-09-03 22:44:46 -04:00
lolcat
c8ab934b10 soundcloud lolllllll 2023-09-03 22:41:44 -04:00
cynic
77293818cd [DANGEROUS] untrack all banners, replace with default banner (#9)
if this git repo is meant for all instances, it doesn't make sense that 4get.ca banners are stored here.
instead, I've added `banner/*` to a .gitignore file, so instances can clone/pull/push the repo without grabbing other people's banners or uploading their own.

making this change required deleting all the currently tracked banners from the repo. an unfortunate side-effect of this is that **if you have any of these tracked banners in your local version, pulling this commit WILL DELETE ALL OF THEM!!!!!!** pulling this commit properly while preserving tracked banners should be done by temporarily copying them to another directory, `git pull`ing, then copying them back.

I also added a default banner based on the default nginx page so new instances aren't bannerless.

Co-authored-by: cynic <kurisufag1@gmail.com>
Reviewed-on: https://git.lolcat.ca/lolcat/4get/pulls/9
Co-authored-by: cynic <admin@cynic.moe>
Co-committed-by: cynic <admin@cynic.moe>
2023-08-30 19:04:53 -05:00
cynic
4cf2d73836 create data/instances.php to demonstrate out-of-code configuration, and use it to dynamically generate the instance list (#8)
see title.
the workflow here (i.e. a file data/*.php, which only has a data structure and is used to generate content elsewhere) could also be used for easier per-instance customization.

[you can see what this looks like live here](https://4get.silly.computer/about)

Co-authored-by: cynic <kurisufag1@gmail.com>
Reviewed-on: https://git.lolcat.ca/lolcat/4get/pulls/8
Co-authored-by: cynic <admin@cynic.moe>
Co-committed-by: cynic <admin@cynic.moe>
2023-08-29 16:11:47 -05:00
ckg
6dfe114c85 Little tutorial about nginx and tor (#7)
review it :3

Reviewed-on: https://git.lolcat.ca/lolcat/4get/pulls/7
Co-authored-by: ckg <ckg@airmail.cc>
Co-committed-by: ckg <ckg@airmail.cc>
2023-08-27 14:22:40 -05:00
lolcat
cfd44438ae fix readme 2023-08-27 01:58:11 -04:00
lolcat
ddfb957b40 Merge branch 'master' of https://git.lolcat.ca/lolcat/4get
what am i doing
2023-08-27 01:51:37 -04:00
lolcat
1fd4c2de6d added yandex web and video search, removed fb search 2023-08-27 01:45:59 -04:00
throwaway
232995bf0d add set -e and use exec to replace parent process to handle docker signals (#6)
use `exec` to turn httpd into parent process. This is important for docker signalling such as `docker stop ${container_id}`
add `set -e` which stops the entrypoint script if any command exits with a non-zero exit code.

Reviewed-on: https://git.lolcat.ca/lolcat/4get/pulls/6
Co-authored-by: throwaway <developerthrowaway@protonmail.com>
Co-committed-by: throwaway <developerthrowaway@protonmail.com>
2023-08-24 20:50:05 -05:00
throwaway
40e058a32a Add Dockerfile and docker entrypoint (#5)
Add Dockerfile and docker entrypoint

Co-authored-by: lolcat <lolcat@no-reply@lolcat.ca>
Reviewed-on: https://git.lolcat.ca/lolcat/4get/pulls/5
Co-authored-by: throwaway <developerthrowaway@protonmail.com>
Co-committed-by: throwaway <developerthrowaway@protonmail.com>
2023-08-23 18:31:08 -05:00
lolcat
9812155838 Delete banner/birds birds birdsw_4.jpg 2023-08-22 21:40:00 -05:00
lolcat
12a6278a5f removed wrong thing 2023-08-13 23:47:28 -04:00
lolcat
b57b2d7118 ill need to rewrite the google scraper, but hey atleast we got imagesearch working woooo 2023-08-13 23:35:08 -04:00
lolcat
6f896221f0 added faceberg setting 2023-08-10 23:15:15 -04:00
lolcat
e6f77a9ca6 fix the faceberg urls 2023-08-10 23:03:01 -04:00
lolcat
2913c58cec added faceberg videos 2023-08-10 22:54:37 -04:00
lolcat
bcc6ce58b3 remove .php 2023-08-08 03:11:51 -04:00
lolcat
4559857380 added brave image+video support 2023-08-08 03:09:47 -04:00
lolcat
7c771c82c8 bug fixes (without google support) 2023-07-27 23:06:49 -04:00
lolcat
16ee0b368f felt quirky, might commit later 2023-07-26 19:03:06 -04:00
lolcat
bca265aea6 still missing things on google scraper 2023-07-22 14:41:14 -04:00