Compare commits

19 Commits

Author SHA1 Message Date
flancian e609a1009a autopushed 2023-12-25 20:51:38 +01:00
flancian b6ef7ec47e autopushed 2023-12-25 20:44:21 +01:00
flancian 662860b1d0 autopushed 2023-12-25 20:43:14 +01:00
flancian 798753baf9 autopushed 2023-12-25 20:42:40 +01:00
flancian 2a623919d8 autopushed 2023-12-25 20:42:06 +01:00
flancian d86b5f6d2c autopushed 2023-12-25 20:41:32 +01:00
flancian 26df0cb33d autopushed 2023-12-25 19:44:52 +01:00
flancian d613046286 autopushed 2023-12-25 19:44:16 +01:00
flancian 64522cf632 autopushed 2023-12-25 19:43:41 +01:00
flancian a7a809b571 autopushed 2023-12-25 17:14:16 +01:00
flancian 39b09b0034 autopushed 2023-12-25 17:10:55 +01:00
flancian 3e5dfc7b69 autopushed 2023-12-25 17:02:33 +01:00
flancian db5664de2f autopushed 2023-12-25 17:01:23 +01:00
flancian fe2e0009fc autopushed 2023-12-25 16:54:54 +01:00
flancian 331e95425f autopushed 2023-12-25 16:54:19 +01:00
flancian f3f8b59f9e autopushed 2023-12-25 16:36:42 +01:00
flancian 558d9c1d79 autopushed 2023-12-25 16:36:06 +01:00
flancian 32978a3470 autopushed 2023-12-25 16:35:31 +01:00
flancian a30c5068e6 autopushed 2023-12-25 16:34:55 +01:00
5 changed files with 84 additions and 1 deletions
+1
View File
@@ -0,0 +1 @@
- [[I will do what I can if I have to]]!
+2
View File
@@ -0,0 +1,2 @@
- For the benefit of all being, hopefully
- Meaning [[truly]] with hope
+2 -1
View File
@@ -1,4 +1,5 @@
- a [[process]]. - a [[process]].
- [[assistant]] - [[assistant]]
- #go https://bard.google.com/ - #go https://bard.google.com/
- #api ? - #api https://github.com/dsdanielpark/Bard-API
- unofficial?
+12
View File
@@ -0,0 +1,12 @@
- [[Happy Holidays]] to all!
- At the very least, ones [[free]] from suffering and affliction!
- [[25]]:
- [[Burn]]
- Burn Kindly!
- If you have to burn,
- [[Burn Kindly]]!
- [[Bluesky]]:
- [[brid.gy]]
- [[snarfed]] told me about [[pinhole]], trying it out
- [[fediverse]]:
- someone told me to read https://americanbuddhist.net/2022/12/14/a-native-internet-protocol-for-social-media-jack-dorsey/ -- it turned out being something written ~precisely 1y ago :)
+67
View File
@@ -0,0 +1,67 @@
- a [[bridge]].
- [[bluesky]] [[fediverse]]
- #go https://fietkau.software/pinhole
- #git https://fietkau.software/Pinhole.git
Trying this out on [[2023-12-25]] :) I got it to run in dev mode as such:
```
> git clone git clone https://fietkau.software/Pinhole.git
> cd Pinhole
> poetry init
> poetry add pycryptodome flask requests
> poetry run pinhole.py
```
Now considering whether I take the step to set up nginx to serve this in a way 'readable' to ActivityPub ecosystem as per instructions in [[go/pinhole]] :)
--
I did :)
This is a usable [[nginx snippet]] -- the original docs linked above only provide the equivalent for Apache2, which I don't use nowadays.
The short of it would be:
- Check out in /var/www/pinhole -- I run it under user pinhole. To set up a separate user, you can use e.g. `adduser pinhole` in Debian based systems and then `su - pinhole` to execute the rest.
- Install [[certbot]] and configure a host running SSL.
- Install [[uwsgi]] using your distribution package manager or [[pipx]]/[[poetry]] to manage dependencies.
- Add the following snippet to the host:
```
location / {
include uwsgi_params;
uwsgi_pass unix:/var/www/pinhole/pinhole.sock;
# Set the parameters for the uWSGI application
uwsgi_param UWSGI_PYHOME /var/www/pinhole;
uwsgi_param UWSGI_CHDIR /var/www/pinhole;
uwsgi_param UWSGI_SCRIPT pinhole:application;
uwsgi_param UWSGI_THREADS 5;
}
```
- Set up uwsgi. I created the following uwsgi.ini and ./run-uwsgi.sh scripts:
```
[uwsgi]
# module = app:create_app()
touch-reload = /tmp/pinhole-restart
home = /home/pinhole/.cache/pypoetry/virtualenvs/pinhole-_elcgCn9-py3.11
master = true
processes = 6
socket = /var/www/pinhole/pinhole.sock
chmod-socket = 666
vacuum = true
die-on-term = true
```
>
>
```
#!/bin/bash
poetry run uwsgi uwsgi.ini
```
Restart nginx and run :) Or optionally set up a [[systemd]] user service.
I tried to make it work without uwsgi, using just a reverse proxy to the flask dev server, and for some reason it didn't work. Maybe it was some unrelated complication having to do with some mis-configuration on that mode, but I just moved on and went the uwsgi way as I already run the [[Agora]] like this.