テストアプリ
nginx
パスワード
sudo htpasswd -cB /etc/nginx/htpasswd admin
sudo chown root:www-data /etc/nginx/htpasswd
sudo chmod 640 /etc/nginx/htpasswd
設定
- /etc/nginx/sites-available/default
server {
...
location /test/ {
auth_basic "Memo administration";
auth_basic_user_file /etc/nginx/htpasswd;
}
...
}
反映
sudo nginx -t
sudo systemctl reload nginx
SDL2
sudo apt install emscripten libsdl2-dev
sudo apt install node-html-minifier-terser # インストールしても下記のエラー
export EM_CONFIG=$HOME/.emscripten
emcc --generate-config
emcc main.c -o index.html -sUSE_SDL=2 -O2 # エラー
emcc main.c -o index.html -sUSE_SDL=2 -sMINIFY_HTML=0 -O2
python3 -m http.server 8000
エラー
emcc: error: html-minifier-terser was not found! Please report this as a bug against emscripten - more info at https://www.debian.org/Bugs/Reporting