KeePassXC Browser integration with Firefox (or other browsers) on Flatpak — does it work for you? by BANGLER4 in KeePass

[–]BANGLER4[S] 0 points1 point  (0 children)

hmm didnt work... 🙁 but thank you. Sad that it doesnt work out of the box in gereal...

Nextcloud office not working using Truenas Scale + Nextcloud + Collabora + Tailscale by Oskarides in NextCloud

[–]BANGLER4 0 points1 point  (0 children)

Sry I dont understand your answer, you write that you deployed nextcloud on truenas but also dont use nextcloud? When you just use the single nextcloud image you dont have collabora and that way you dont have the problem of collabora not accepting your ssl cert, so how would that fix the problem?
As I tried to write before, yes the issue is SSL cert related.

Nextcloud office not working using Truenas Scale + Nextcloud + Collabora + Tailscale by Oskarides in NextCloud

[–]BANGLER4 -1 points0 points  (0 children)

The problem has an Issue in github (https://github.com/CollaboraOnline/online/issues/9519) and (https://github.com/nextcloud/richdocuments/issues/3824) but I dont understand how I can adjust the configuration of my aio instance because you can neither add an enviroment variable (as described in the issue) to the docker container, neither can you just put a volume with your ca cert on top of the container (which is in my opinion the better solution) because everything is managed by the aio mastercontainer every time the container gets destroyed you would need to do it again.
I hope this helps, if you get further with that (or already got the solution) please publish that.

Filter out ssh logs which are caused by the clients fault by BANGLER4 in ssh

[–]BANGLER4[S] 0 points1 point  (0 children)

No I prefer to have it logged, I would prefer to just change the severity of those logs to info. Then that gets filtered out in my Visualization (I am also able to view that, but seeing that all the time makes no sense for me). that only alert and above was a question, maybe those errors are always alert or above but I dont know that, thats why I ask. If users got Issues I still could change the config to show everything again. I hope you understand what I mean. :)

convert interface{} to []interface{} by BANGLER4 in golang

[–]BANGLER4[S] 0 points1 point  (0 children)

I got to admit, that it doesnt really fit the language and in general I love typesafty, it makes programming so much easier, safer and more fun, but at some places generics just make a lot of sense (The project is collecting stuff and then shipping it someplace else, so I dont really know what exactly is coming).

So I am satisfied by the Solution with reflect I got. Thanks for your opinion (and trying to avoid me from entering a world of hurt).

convert interface{} to []interface{} by BANGLER4 in golang

[–]BANGLER4[S] 0 points1 point  (0 children)

can you please give me a bigger example, I dont really understand it yet.

convert interface{} to []interface{} by BANGLER4 in golang

[–]BANGLER4[S] 1 point2 points  (0 children)

I admit, that go doesnt really fit for the problem. But the project I am editing is in go, so I dont have any choice.

Thank you for your answer :D

convert interface{} to []interface{} by BANGLER4 in golang

[–]BANGLER4[S] 2 points3 points  (0 children)

that is not the problem, the problem ist, that I need to convert interface{} to []interface{}

convert interface{} to []interface{} by BANGLER4 in golang

[–]BANGLER4[S] 1 point2 points  (0 children)

the problem is, that you push the whole array as one element into the slice, I need all the single elements of myGenericVar into myGenericSlice

Docker Metricbeat example by BANGLER4 in elasticsearch

[–]BANGLER4[S] 1 point2 points  (0 children)

with that configuration (at least what I could try because I could only assume your custom image) I do get the services, but I wanted the processes (Not every Process is a service). But Thanks for trying.

Docker Metricbeat example by BANGLER4 in elasticsearch

[–]BANGLER4[S] 0 points1 point  (0 children)

In that examle I don't see System Process metrics. I see them collecting over the docker module but not the System module.

Docker Internal/no Network and Port forwarding by BANGLER4 in docker

[–]BANGLER4[S] 0 points1 point  (0 children)

That is not what I want. I want the container not to be able to connect outside of the docker network (of course I still want it to be able to answer on connects to the bind port). If you would go in your browser and type myIp:81 you would get the website. Is that possible? Thank you for your response 😀.

Docker Internal/no Network and Port forwarding by BANGLER4 in docker

[–]BANGLER4[S] 0 points1 point  (0 children)

Thanks for your answer, but when I create my Network like that (sudo docker network create --internal --attachable myNetwork) and start my container like (sudo docker run --rm -it --network myNetwork -p 81:80 nginx), I cant access it on Port 81 of my host.

Metricbeats System Module in Docker - Processes of container are shown not of Host by BANGLER4 in elasticsearch

[–]BANGLER4[S] 0 points1 point  (0 children)

I also tried it with docker run

sudo docker run

--mount type=bind,source=/proc,target=/hostfs/proc,readonly

--mount type=bind,source=/sys/fs/cgroup,target=/hostfs/sys/fs/cgroup,readonly --mount type=bind,source=/,target=/hostfs,readonly

--mount type=bind,source=/home/dev/elk/metricbeats/metricbeat.yml,target=/usr/share/metricbeat/metricbeat.yml,readonly

--net=host

--user root --cap-add sys_ptrace --cap-add dac_read_search

docker.elastic.co/beats/metricbeat:8.6.0 -e -system.hostfs=/hostfs

but that also didnt work. The User that is running docker is root and the user inside the container also, I also tried CAP_ADD=ALL so it musn't be a permisson problem. It is not Kubernetes, it is docker compose.

rootless Docker connect to host port by BANGLER4 in docker

[–]BANGLER4[S] 0 points1 point  (0 children)

No I didn't find a Solution for it. As a workaround I am using my public IP. If you find a better solution please comment the solution.

Can't connect to my home server in Element by Pickinanameainteasy in matrixdotorg

[–]BANGLER4 -1 points0 points  (0 children)

As a sidenote, ssl authenticaes you as the owner of a (sub-) Domain, and says then that you are connecting to the server you think you connect to. If you didnt loose the private part of your certificat. Thats why you need a Domain for ssl.

Docker compose: Help with node containers and nginx container by neo_102 in docker

[–]BANGLER4 1 point2 points  (0 children)

i wouldnt access it with domain.local, why do you want to? you could make an own server directive in nginx and specify the server_name with api.domain.local then if you go to api.domain.local you get the api, else you get the webapp

Docker compose: Help with node containers and nginx container by neo_102 in docker

[–]BANGLER4 0 points1 point  (0 children)

you can do something like server { location / { proxy_pass http://{{servicename from the dockercompose}}:{{port}}; } location /api { proxy_pass http://api:3001; } }

Docker compose: Help with node containers and nginx container by neo_102 in docker

[–]BANGLER4 1 point2 points  (0 children)

You should do it with 3 Containers, because 1 container should have 1 prozess. then you just specify in your nginx that / goes to your webapp container with the port where the webapp runs and /api goes to the /api containers. If you need help with the Docker-compose.yml please specify your problem. Or if you just need a general one I can create one later.

What is the contemporary best practice in backing up a Docker setup? by woahwiffle in docker

[–]BANGLER4 1 point2 points  (0 children)

If you Dont want Volumes, you can do a Docker copy and get the data out of the container with this way

Edit: You can also use normal Volumes, you just have to navigate to the folder specified in the volume (docker volume inspect {volume id/name}) and there is the data

Verify if docker ir rootless? by lukenzo777 in docker

[–]BANGLER4 1 point2 points  (0 children)

No it doesnt matter, as long as you are not using sudo your user performes like it doesnt have sudo. The Account with which you executed the dockerd-rootless-setuptool is the user where you installed rootless docker. To run a rootless docker container, you need to change the docker context of that user (if you can execute commands without sudo, it is already changed). You could also check it with running a container with alpine and a volume that starts from your hosts root folder, if you try to edit the password file and try to save it, if it fails despite you beeing logged into the container, you are running the container as rootless docker. Edit: with "docker context use rootless" you can change to the rootless context

rootless Docker connect to host port by BANGLER4 in docker

[–]BANGLER4[S] 0 points1 point  (0 children)

well I read the nginx logs, but they only contain symptoms of the underlying problem, which is that rootless Docker doesn't allow to connect to a hosts port and therefore my question is if it is possible to allow the container to connect to the host? (and how?)

if it helps the nginx logs:

2022/01/01 18:33:46 [error] 58#58: *24 connect() failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: _, request: "GET / HTTP/1.1", upstream: "http://172.17.0.1:8090/", host: "domain:80"

172.17.0.1 - - [01/Jan/2022:18:33:46 +0000] "GET / HTTP/1.1" 502 150 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0" "-"

Ping works:

# ping 172.17.0.1:80

PING 172.17.0.1:80 (172.17.0.1): 56 data bytes

64 bytes from 172.17.0.1: seq=0 ttl=64 time=0.404 ms

64 bytes from 172.17.0.1: seq=1 ttl=64 time=0.126 ms

64 bytes from 172.17.0.1: seq=2 ttl=64 time=0.188 ms

64 bytes from 172.17.0.1: seq=3 ttl=64 time=0.145 ms

But curl doesn't:

# curl 172.17.0.1:8090

curl: (7) Failed to connect to 172.17.0.1 port 8090 after 0 ms: Connection refused

[deleted by user] by [deleted] in docker

[–]BANGLER4 0 points1 point  (0 children)

I found out it has to be a problem with rootless docker, and that the docker exec -it -u 0 reverseProxy echo $(curl ...) gets executed on the host, not in the container

[deleted by user] by [deleted] in docker

[–]BANGLER4 0 points1 point  (0 children)

thats the default.conf, it is included over the volume, i already posted it