SELECT users.*
FROM users
LEFT JOIN "departments" "Department" ON "users"."department_id" = "Department"."id"
LEFT JOIN users "User2" ON "User2".id = 8
LEFT JOIN departments "Department2" ON "User2".department_id = "Department2".id
WHERE CASE
WHEN "Department2" IS NULL OR "Department2".is_private = false
THEN "Department" IS NULL OR "Department".is_private = false
ELSE "Department".id = "Department2".id
END
location ~ ^/(api|ws|metrics|video) {
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://api:8001;
}
location ~ ^/ws {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://api:8001;
}
location / {
try_files $uri $uri/ /index.html =404;
}
CMD ["sh", "-c", "GOOS=linux GOARCH=amd64 go build -o .bin/app . && cd .bin && ./app"]
CMD ["sh", "-c", "GOOS=linux GOARCH=amd64 go build -o .bin/app . && cd .bin && ./app"], при кадом запуске идет сборка проекта, а затем запуск
./app: no such file or directory: unknown
/root/appName/./.bin/app: no such file or directory: unknown
su admin
CONT_FULL_NAME=$(tail -c+5 "7c755c96.000/name.key")
cp -R "7c755c96.000" /var/opt/cprocsp/keys/admin/
/opt/cprocsp/bin/amd64/certmgr -inst -file "certfile.cer" -cont "\\\\.\\HDIMAGE\\$CONT_FULL_NAME"