The point was that in the future it will be easy to set up surveillance cameras
Valmond
Okay so I "found" it, but I suppose there is an underlying problem, but well it works.
See that last commented line?
It shuts off the default lemmy-ui at all times... It's even in the comment! I wonder how that could ever have worked?
So now I just have to find out if I need to forward the POST, PUT, DELETE, PATCH, CONNECT to lemmy ...
Thank you all for your patience :-)
map "$request_method:$http_accept" $proxpass {
# If no explicit matches exists below, send traffic to lemmy-ui
default "http://lemmy-ui";
# GET/HEAD requests that accepts ActivityPub or Linked Data JSON should go to lemmy.
#
# These requests are used by Mastodon and other fediverse instances to look up profile information,
# discover site information and so on.
"~^(?:GET|HEAD):.*?application\/(?:activity|ld)\+json" "http://lemmy";
# All non-GET/HEAD requests should go to lemmy
#
# Rather than calling out POST, PUT, DELETE, PATCH, CONNECT and all the verbs manually
# we simply negate the GET|HEAD pattern from above and accept all possibly $http_accept values
#"~^(?!(GET|HEAD)).*:" "http://lemmy";
}
More info:
I logged in as the owner on a mobile app, and most things work okay, but upvoting another users post on my site gave an error:
proxy_1 | 172.18.0.1 - - [20/Jul/2023:15:56:07 +0000] "POST /api/v3/post/like HTTP/1.1" 200 569 "-" "Jerboa"
proxy_1 | 172.18.0.1 - - [20/Jul/2023:15:56:07 +0000] "POST /api/v3/post/like HTTP/1.1" 200 569 "-" "Jerboa"
proxy_1 | 172.18.0.1 - - [20/Jul/2023:15:56:09 +0000] "POST /api/v3/post/like HTTP/1.1" 200 568 "-" "Jerboa"
proxy_1 | 172.18.0.1 - - [20/Jul/2023:15:56:16 +0000] "POST /api/v3/comment/like HTTP/1.1" 200 889 "-" "Jerboa"
lemmy_1 | 2023-07-20T15:56:16.441551Z WARN lemmy_server::root_span_builder: Domains do not match
lemmy_1 | 0: lemmy_server::root_span_builder::HTTP request
lemmy_1 | with http.method=POST http.scheme="http" http.host=lemmy.mindoki.com http.target=/inbox otel.kind="server" request_id=0b06a8ae-3676-430a-a3c7-4008e748b1e9
lemmy_1 | at src/root_span_builder.rs:16
lemmy_1 | LemmyError { message: None, inner: Domains do not match, context: SpanTrace [{ target: "lemmy_server::root_span_builder", name: "HTTP request", fields: "http.method=POST http.scheme=\"http\" http.host=lemmy.mindoki.com http.target=/inbox otel.kind=\"server\" request_id=0b06a8ae-3676-430a-a3c7-4008e748b1e9", file: "src/root_span_builder.rs", line: 16 }] }
proxy_1 | 172.18.0.1 - - [20/Jul/2023:15:56:16 +0000] "POST /inbox HTTP/1.1" 400 20 "-" "Lemmy/0.18.2; +https://127.0.0.1"
Does this error spread some light about what is wrong? I'm thinking especially of the https://127.0.0.1 for which I don't have a SSL certificate (I only have one for lemmy.mindoki.com).
I'll try to hunt down that 127.0.07 and change it to lemmy.mindoki.com, but If you know the answer I'm all ears :-)
Today it might be as much a hassle as to assemble a micro computer in the eighties, but I bet it will be one as easy as filming with your mobile phone in the future.
You should check out Snow Crash by Neal Stephenson. It takes it a bit further ...
Well thank you but it doesn't really help me out with, for what I have figured out, connecting the server 443 in nginx to the lemmy-ui docker. Sweating
Hey thank you! Edited :-)
Yep, I'm following the official docker install.
Yes part of my confusion is how all these nginx conf files works together. I tried to replace the nginx.conf (but I couldn't find some 'default' one, which seems logic as it potentially manages other things too, I tried to paste the ansible one in there, but maybe some pass through is the only thing needed) and the nginx_internal.conf is like the one recommended.
That said, it there are lots of places where you can put 127.0.0.1, lemmy.mindoki.com or localhost and so on. I potentially mixed something up there too...
Edit: Lemmy didn't accept the first post so reposting.
Edit edit: yes I'm all with you, if someone has a working set of config files that would be Great!
Ooh, yes it works from another client, excellent advice!
With:
https://lemmy.mindoki.com/c/moebius
I can post, upload images, ... Only thing is I can't see my first posts image I posted yesterday locally (here from my smartphone). A bit like the server can't get the logo image (again posted yesterday).
Thank you for all these precious advices, I'm off to bed now but tomorrow is another day hopefully filled with lemmy-ui tweaking :-)
Cheers & good night!
Apparently the "older" ones like T480 had crappy screens and it changed with, tada! , the T490 generation q. I'm quite happy with mine to be honest. I got a french keyboard, thinking about getting the US one with that Big return key :-D but I'm curious about what your "retrofitted classic keyboard" is (it appears it is quite simple to change the keyboard on ThinkPad)?
Seems very reasonable, I checked it out, but it's the exact same problem (after I forwarded the 443 port too. BTW I haven't tinkered with the ssl port);
https://lemmy.mindoki.com shows the server error
but
https://lemmy.mindoki.com/pictrs/image/730840b6-d6ec-4a40-8668-36b89c6c1d33.png
shows the image ...
Also,
curl "https://lemmy.mindoki.com/api/v3/community/list?sort=Hot&Limit=1"
Works!
It drives me crazy :-) but I feel even more some ssl problem between the lemmy docker server and pictrs, no?
"as a black man"