2022-01-01から1年間の記事一覧

varnish nginx

nginx - varnish の構成 client - (https) - nginx - (socket) - varnish - (http) app nginx: SSL temination, logging varnish: cache 当初、nginx の proxy_cache を試したのですが、同一 URL へ多数のリクエストが来ている状況でキャッシュのライフタイ…

自己証明書 nginx

https://www.digitalocean.com/community/tutorials/how-to-create-a-self-signed-ssl-certificate-for-nginx-in-ubuntu-16-04自己証明書でnginxにSSL(TLS)対応する - Qiita

sendmail ユーザー 大文字 小文字

名前に大文字が入っているユーザーにはメールを送信できません。sendmail(1M) は、すべての大文字を小文字に変換してからユーザーを検索します。UNIX では大文字小文字を区別するため、このような大文字から小文字に変更されたユーザー名を検索することがで…

mysql Index column size too large

Mysql2::Error: Specified key was too long; max key length is 767 bytesを解決する - Qiita 2019Mysql2::Error: Specified key was too long; max key length is 767 bytes: CREATE UNIQUE INDEX - リア充爆発日記 2013MySQL 256バイト以上あるカラムに索…

sendmail procmail userquota

vi /usr/share/skel/dot.procmailrc DEFAULT=$HOME/Maildir/ ORGMAIL=$HOME/Maildir/ ユーザ追加 adduser Username: user1 ... cat /home/user1/.procmailrc DEFAULT=$HOME/Maildir/ ORGMAIL=$HOME/Maildir/ zfs set userquota@user1=5G zroot/usr/home (確…

FAX テスト受信

FAX機メーカーの中には、指定の番号にFAXを送信すると、同じものを送り返してくれるサービスを提供しているメーカーがあるようです。送信する際は発信者番号を通知する必要があります。 エプソン:042-585-8501 ブラザー:052-824-4773 https://faq2.epson.j…

Perfect_maildir mbox to maildir

Debian FreeBSD perlhttp://perfectmaildir.home-dn.netmbox形式のデータをMaildir形式に変換する – あんじーのテクニカルブログ 2016

file sharing on Catalina 10.15.7 ファイル共有 osx

10.15.7 ファイル共有が有効にできない問題がある?How to set up file sharing on Catalina 10… - Apple Community 2022/06 Here's my synopsis:Close system Preferences (If open) Open Terminal Paste: sudo launchctl load -w /System/Library/LaunchDa…

ansible /etc/crontab

https://docs.ansible.com/ansible/latest/collections/ansible/builtin/cron_module.htmlcron_file に /etc/crontab は指定できなくなった。 cron: cron_file: /etc/crontab Will not manage /etc/crontab via cron_file, see documentation. FreeBSD cron …

varnish 再入門

https://varnish-cache.org/varnish - external storage 1 2015CDN 導入時のキャッシュ設定の考え方 - Qiita 2021 バージョン 7.1https://varnish-cache.org/releases/rel7.1.0.html#rel7-1-0https://www.varnish-software.com/developers/tutorials/varnish…

ngx_headers_more

https://github.com/openresty/headers-more-nginx-modulehttps://mogile.web.fc2.com/nginx_wiki/nginx_wiki201510/modules/headers_more.html 現在のコンテキストに add_header が書かれいていない場合に限り、上位コンテキストで記載されている add_heade…

MacBook Pro (16-inch, 2019)Mac の SMC をリセットする方法 - Apple サポート (日本)Mac の内蔵カメラが機能しない場合 - Apple サポート (日本)

部分インデックス

Partial indexes Up to now, an index covered the entire table. This is not always necessarily the case. There are also partial indexes. When is a partial index useful? Consider the following example: test=# CREATE TABLE t_invoice ( id seria…

アカウントロック ssh

Linux ユーザーアカウントをロック・アンロックする Ubuntu (ロック) passwd -l hoge_user (アンロック) passwd -u hoge_user (確認) passwd -S hoge_user パスワードを設定していないユーザで ssh ログインしようとすると公開鍵認証でもログインに失敗する …

Phalcon php-fpm error log

To get PHP error logging on when using Nginx with PHP-FPM you need may need to set catch_workers_output = yes in your pool configuration, on Debian and Ubuntu this would be /etc/php5/fpm/pool.d/www.conf by default.https://forum.phalcon.io/…

pgpool munin plugin

https://github.com/vpetersson/munin_pgpoolWork around patch for munin/pgpool_connections | /var/log/azumakuniyuki 2013Python 3 対応https://github.com/kurita0/munin_pgpool/blob/python3-support/pgpool_connectionssubprocess.check_output のパ…

ports make install Error code 70

224969 – ports-mgmt/pkg Registering installation Error code 70224244 – make reinstall and FORCE_PKG_REGISTER does not work make deinstall make install

Pgpool-II

https://www.pgpool.net/mediawiki/index.php/Main_Page 動作モード設定の集約 Pgpool-II にはさまざまな動作モードがあります。動作モードはバージョンを重ねるたびに増えてきたこともあり、バージョン 4.1 以前では、replication_mode、master_slave_mode…

Dell 11G R610 firmware update

R610 PERC 6/i のファームウェアを更新する。https://www.dell.com/support/home/ja-jp/product-support/product/poweredge-r610/drivershttps://www.dell.com/support/home/ja-jp/drivers/driversdetails?driverid=f96nrこの方法Manually Updating the Firm…

PostgreSQL レプリケーション コンフリクト

ERROR: canceling statement due to conflict with recovery DETAIL: User query might have needed to see row versions that must be removed. PostgreSQLのレプリケーションのコンフリクトについて言いたい - Qiita 2017PostgreSQLのレプリケーションのコ…

pgroonga tuning

pgroonga.match_escalation_threshold https://pgroonga.github.io/ja/reference/parameters/match-escalation-threshold.html pgroonga.match_escalation_threshold いつマッチエスカレーションが実行されるかを制御します。 マッチエスカレーションとは自…

postgres インデックス断片化

https://goodbyegangster.hatenablog.com/entry/2019/05/16/223803:2019leaf_fragmentation の単位はパーセント?

nginx User-Agentで制限 UA

NGINX to block bad bots. (add Twenga|TwengaBot if you want to exclude them too) · GitHub 次に、拒否設定した User-Agent を使ってアクセスしてみます。 403 はアクセス拒否を示しています。 $ curl -H "User-Agent: Mozilla/5.0 Jorgee" -I http:/// H…

zfs

zfs swap 2010年4月16日 ZFSにスワップ領域を作成する方法:FreeBSD Daily Topics|gihyo.jp … 技術評論社 2010 # zfs create -V size \ -o org.freebsd:swap=on \ -o checksum=off \ -o compression=off \ -o dedup=off \ -o sync=disabled \ -o primarycac…

nginx CSP

CSP Content Security Policy 上記のように、「サービス運営者はこれと、これと、あれが必要だ、それ以外は要らないと言っている(上記のルール記載)」とブラウザが認識し、そのルールに従って、サイトに訪れる一人ひとりの利用者を守っています。 Content Se…

web security headers

IPA ISEC セキュア・プログラミング講座:Webアプリケーション編 第8章 マッシュアップ:クライアントサイドマッシュアップ: #4 対策に利用できる技術Webサーバで指定すべきヘッダ - Qiita 2012Nginx設定の肝 - がとらぼ→ https://securityheaders.com/CSP →…

AWS EC2 自動復旧

【アップデート】Amazon EC2でインスタンスの自動復旧がデフォルトに | SunnyCloud 2022AWS システムステータスチェックエラー時にEC2を自動復旧する | IT王子の技術ブログ 2021

Clam Antivirus clamav

https://clamav-jp.osdn.jp/jdoc/clamav.html 参考になるhttps://www.lisenet.com/2014/automate-clamav-to-perform-daily-system-scan-and-send-email-notifications-on-linux/ FreeBSD clamav https://www.adminbyaccident.com/freebsd/how-to-freebsd/how…

FreeBSD sendmail sasl blacklistd

pkg(ports)のsendmailをインストールする sendmail_program="/usr/local/sbin/sendmail" sendmail_procname="/usr/local/sbin/sendmail" blacklistd対応するなら以下も追加 sendmail_flags="-L sm-mta -bd -q30m -O UseBlacklist" FreeBSDでpkg/ports版のSen…

セキュリティ診断ツール

OSS or Freeのセキュリティ診断ツール - Qiita 2017OWASP ZAP CLI 入門(インストール、起動方法、基本的なオプション) - Qiita 2019