https://hub.docker.com/r/smallstep/step-ca
2022年12月21日 星期三
nginx 變數與語法與範例
# Map
http://shouce.jb51.net/nginx-doc/Text/3.18_map.html
https://www.astralweb.com.tw/how-to-set-map-on-nginx/
# 語法
https://blog.learn-or-die.com/zh-tw/nginx/
https://linuxhint.com/nginx-location-regex-examples/
# good
https://segmentfault.com/a/1190000013267839
# 認識 Header
CSP
https://medium.com/hannah-lin/content-security-policy-csp-%E5%B9%AB%E4%BD%A0%E7%B6%B2%E7%AB%99%E5%88%97%E7%99%BD%E5%90%8D%E5%96%AE%E5%90%A7-df38c990f63c
#Variable
https://www.javatpoint.com/nginx-variables
http://nginx.org/en/docs/varindex.html
#Log
https://www.digitalocean.com/community/tutorials/nginx-access-logs-error-logs
# Bug
# authentication 404
https://nova.moe/grafana-basic-auth/
https://nginx.org/en/docs/http/ngx_http_auth_basic_module.html#auth_basic
#nginx 與 php-fpm 運作介紹與設定
# 重導範例 1
rewrite ^/welcome $the_scheme://$the_host redirect;
location = / {
return 404;
}
# 加入 Header 在 proxy_pass 範例
# nginx 可以學習
https://ithelp.ithome.com.tw/articles/10241034
https://ithelp.ithome.com.tw/articles/10280441
2022年12月15日 星期四
nextcloud onlyoffice
## nextcloud3 intro
https://nextcloud.com/blog/announcing-nextcloud-hub-3-brand-new-design-and-photos-2-0-with-editor-and-ai/
# nextcloud mismulus
https://ithelp.ithome.com.tw/articles/10297375?sc=iThelpR
# nextcloud apps
https://apps.nextcloud.com/
#nextcloud version
https://hub.docker.com/_/nextcloud/
# nextcloud install
https://www.asustor.com/zh-tw/online/College_topic?topic=273
https://ithelp.ithome.com.tw/articles/10240195
# nextcloud trust domain
Trusted domains are used by Nextcloud to prevent Host Header Poisoning. You need to specify every domain at which your Nextcloud can be accessed. This means if you have Nextcloud installed at “192.168.0.29” and also want it to be accessible at “cloud.example.com” you’d need to modify the trusted_domains entry in your config/config.php. The initial config would look like the following: 'trusted_domains' => array ( 0 => '192.168.0.29', ), To add a new domain just add new entries by ap…
https://help.nextcloud.com/t/ubuntu-server-trusted-domains/80534
https://www.hacksplaining.com/prevention/host-header-poisoning
https://www.sjoerdlangkemper.nl/2017/09/13/attacks-on-host-header/
https://portswigger.net/web-security/host-header
# docker-onlyoffice-nextcloud/docker-compose.yml
https://github.com/ONLYOFFICE/docker-onlyoffice-nextcloud/blob/master/docker-compose.yml
# user basic auth
https://github.com/nextcloud/user_external#readme
https://github.com/nextcloud/user_external#readme
https://github.com/nextcloud/user_external/blob/master/lib/BasicAuth.php
https://stackoverflow.com/questions/42365264/nextcloud-external-login-for-users-in-another-database
https://www.digitalocean.com/community/tutorials/how-to-set-up-password-authentication-with-apache-on-ubuntu-14-04
https://github.com/nextcloud/desktop/issues/2046
https://github.com/nextcloud/user_external/tree/master/lib
https://help.nextcloud.com/t/issues-with-basic-auth-on-parent-directory/26112
https://help.nextcloud.com/t/issues-with-basic-auth-on-parent-directory/26112
###################################################
# only office
########################################################
setting: https://helpcenter.onlyoffice.com/gettingstarted/integration/Nextcloud.aspx
onlyoffice: https://github.com/ONLYOFFICE/DocumentServer
#fig:
https://api.onlyoffice.com/editors/nextcloud
# onlyoffice nextcloud setting or install
https://helpcenter.onlyoffice.com/gettingstarted/integration/Nextcloud.aspx
https://www.onlyoffice.com/office-for-nextcloud.aspx
https://hub.docker.com/r/onlyoffice/documentserver
#nx folder:
https://help.nextcloud.com/t/werent-there-files-directories-that-require-the-www-data-www-data-to-be-the-owner/66811
# nextcloud source code
https://github.com/nextcloud/server
https://github.com/ONLYOFFICE/DocumentServer/tags
# nextcloud https and http mix
https://bayton.org/docs/nextcloud/nexcloud-behind-a-proxy-fixing-mixed-content-warnings-with-ssl/
#token
https://api.onlyoffice.com/editors/signature/
#test nextcloud
https://nx.armor.hinet.net/status.php
#nextcloud passwd
https://xenby.com/b/103-%E6%95%99%E5%AD%B8%E5%B0%8D%E7%B6%B2%E9%A0%81%E5%95%9F%E7%94%A8%E5%AF%86%E7%A2%BC%E9%A9%97%E8%AD%89-nginx
# onlyoffice jwt setting (try but no work)
https://help.nextcloud.com/t/onlyoffice-secret-key-issue/56464/12
https://helpcenter.onlyoffice.com/installation/docs-configure-jwt.aspx
# onlyoffice nginx proxy
https://github.com/ONLYOFFICE/document-server-proxy/tree/master/nginx
https://aarondevelops.com/nextcloud-onlyoffice/
https://www.jianshu.com/p/3f99d45fb4b8
#onlyoffice https self
https://linuxhandbook.com/nextcloud-onlyoffice/
#onlyoffice docker environment
https://helpcenter.onlyoffice.com/installation/groups-https-docker.aspx
https://helpcenter.onlyoffice.com/installation/docs-community-install-docker.aspx
# onlyoffice nginx https - tick [unreachable ]
https://github.com/ONLYOFFICE/docker-onlyoffice-nextcloud/issues/22
https://community.nethserver.org/t/onlyoffice-cannot-be-reached/20196/10
https://forum.onlyoffice.com/t/onlyoffice-cannot-be-reached-please-contact-admin/1199
https://help.nextcloud.com/t/nextcloud-18-onlyoffice-cannot-be-reached-please-contact-admin/80869
# mix content
https://github.com/ONLYOFFICE/onlyoffice-nextcloud/issues/81
# onlyoffice with nextcloud container
https://www.jianshu.com/p/fc3a2697e11d
#onlyoffce decative welcome page
https://forum.onlyoffice.com/t/hide-deactivate-welcome-page/566
# Onlyoffice License and function
https://github.com/ONLYOFFICE/docker-onlyoffice-nextcloud
# Onlyoffice nginx exampe
https://github.com/ONLYOFFICE/docker-onlyoffice-nextcloud/blob/66ef6e9ff93aba2066e298163f0c2673d4f98df8/nginx.conf#L91
2022年12月8日 星期四
rabbitmq add user
1. user command line
rabbitmqctl add_user daniel danielrabbitmqctl set_user_tags daniel administratorrabbitmqctl set_permissions -p / daniel ".*" ".*" ".*"
2022年11月22日 星期二
Docker composer user authoor
https://blog.wu-boy.com/2019/10/three-ways-to-setup-docker-user-and-group/
bug: mariadb Got an error reading communication
Finally: not to solve it , but we can look
1.
https://severalnines.com/blog/common-mysql-error-got-error-reading-communication-packet/
https://www.percona.com/blog/2016/05/16/mysql-got-an-error-reading-communication-packet-errors/
2. flask + sqlmyachle
https://www.maxlist.xyz/2020/10/06/flask-sqlalchemy-parameter/
https://flask-sqlalchemy.palletsprojects.com/en/2.x/config/
3. performance
https://www.datadoghq.com/blog/monitoring-mysql-performance-metrics/
https://stackoverflow.com/questions/2214039/command-to-check-read-write-ratio