This commit is contained in:
70
Technical/Server/Old Nextcloud.md
Executable file
70
Technical/Server/Old Nextcloud.md
Executable file
@@ -0,0 +1,70 @@
|
||||
---
|
||||
note type:
|
||||
- server
|
||||
- note
|
||||
date: 2026-06-03
|
||||
done: true
|
||||
---
|
||||
# wg
|
||||
|
||||
Shakkal123\!
|
||||
|
||||
docker run ghcr.io/wg-easy/wg-easy:14 node -e 'const bcrypt = require("bcryptjs"); const hash = bcrypt.hashSync("Shakkal123\!", 10); console.log(hash.replace(/\\$/g, "\[\]"));'
|
||||
|
||||
Unable to find image 'ghcr.io/wg-easy/wg-easy:14' locally
|
||||
14: Pulling from wg-easy/wg-easy
|
||||
Digest: sha256:5f26407fd2ede54df76d63304ef184576a6c1bb73f934a58a11abdd852fab549
|
||||
Status: Downloaded newer image for ghcr.io/wg-easy/wg-easy:14
|
||||
|
||||
\[2a\]10$$E1lkGe/IH5EnFrQLhDH2M.yKk3Q7KlgRuu.fzf/76CbWoAMy4G83u
|
||||
|
||||
# nextcloud:
|
||||
|
||||
location ^\~ *nextcloud* {
|
||||
auth<sub>basic</sub> off;
|
||||
|
||||
proxy<sub>pass</sub> <http://localhost:8007/>;
|
||||
proxy<sub>setheader</sub> Host $host;
|
||||
proxy<sub>setheader</sub> X-Real-IP $remote<sub>addr</sub>;
|
||||
proxy<sub>setheader</sub> X-Forwarded-For $proxy<sub>addxforwardedfor</sub>;
|
||||
proxy<sub>setheader</sub> X-Forwarded-Proto $scheme;
|
||||
|
||||
proxy<sub>httpversion</sub> 1.1;
|
||||
proxy<sub>setheader</sub> Upgrade $http<sub>upgrade</sub>;
|
||||
proxy<sub>setheader</sub> Connection "upgrade";
|
||||
|
||||
client<sub>maxbodysize</sub> 512M;
|
||||
client<sub>bodybuffersize</sub> 512k;
|
||||
|
||||
add<sub>header</sub> Referrer-Policy "no-referrer" always;
|
||||
add<sub>header</sub> X-Content-Type-Options "nosniff" always;
|
||||
add<sub>header</sub> X-Frame-Options "SAMEORIGIN" always;
|
||||
add<sub>header</sub> X-XSS-Protection "1; mode=block" always;
|
||||
}
|
||||
|
||||
location ^\~ /.well-known/carddav {
|
||||
return 301 $scheme://$host/nextcloud/remote.php/dav;
|
||||
}
|
||||
|
||||
location ^\~ /.well-known/caldav {
|
||||
return 301 $scheme://$host/nextcloud/remote.php/dav;
|
||||
}
|
||||
|
||||
location ^\~ /.well-known {
|
||||
return 301 $scheme://$host/nextcloud/index.php$uri;
|
||||
}
|
||||
|
||||
# technitium
|
||||
|
||||
location *technitium* {
|
||||
proxy<sub>pass</sub> <http://localhost:5380/>;
|
||||
proxy<sub>httpversion</sub> 1.1;
|
||||
proxy<sub>setheader</sub> Host $host;
|
||||
proxy<sub>setheader</sub> X-Real-IP $remote<sub>addr</sub>;
|
||||
proxy<sub>setheader</sub> X-Forwarded-For $proxy<sub>addxforwardedfor</sub>;
|
||||
proxy<sub>setheader</sub> X-Forwarded-Proto $scheme;
|
||||
|
||||
rewrite ^/technitium/(.\*)$ /$1 break;
|
||||
}
|
||||
|
||||
curl -X GET "<https://zserver.zapto.org/portainer/api/endpoints/3/docker/containers/json?all=true>" -H "X-API-Key: ptr<sub>KFQqKse9K4Nc9M5jnpc61fpAvGzdTOXTzswz9CwOF74</sub>=" -u "admin:shakkal123"
|
||||
Reference in New Issue
Block a user