# サーバーにSSH接続 ssh user@server # パッケージインストール sudo apt-get update sudo apt-get install nginx # 設定ファイル編集 sudo vim /etc/nginx/nginx.conf # サービス再起動 sudo systemctl restart nginx # 手動でGit管理 git add . git commit -m "Update nginx config"
# configuration.nix { services.nginx = { enable = true; # 設定はコードとして記述 }; }
# ビルド&デプロイ nixos-rebuild switch # 自動的にGitで管理可能 # 設定ミスはビルド時に検出
Twitter: Mastodon: LinkedIn: Blog: GitHub:
Needed for mermaid, can be anywhere in file except frontmatter