:PROPERTIES: :ID: 2c2d8df4-ad36-40ab-9f30-8a047b372956 :END: #+title: old_nextcloud_server_code #+filetags: :server:self-hosting: * 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: # Allow unauthenticated access to /nextcloud location ^~ /nextcloud/ { auth_basic off; proxy_pass http://localhost:8007/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; client_max_body_size 512M; client_body_buffer_size 512k; add_header Referrer-Policy "no-referrer" always; add_header X-Content-Type-Options "nosniff" always; add_header X-Frame-Options "SAMEORIGIN" always; add_header X-XSS-Protection "1; mode=block" always; } # iOS and calendar/carddav fixes 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_pass http://localhost:5380/; proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; # Rewrite path for base URL 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_KFQqKse9K4Nc9M5jnpc61fpAvGzdTOXTzswz9CwOF74=" -u "admin:shakkal123"