| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| servers:windows:nginx:friendica [2026/02/03 22:04] – [Maintenance] Sean Rhone | servers:windows:nginx:friendica [2026/03/06 00:32] (current) – [Download Sources] Sean Rhone |
|---|
| allow "all"; | allow "all"; |
| rewrite "^" "/index.php?pagename=$uri"; | rewrite "^" "/index.php?pagename=$uri"; |
| } | |
| |
| location "~*" "\.(js|css|png)$" { | |
| expires "7d"; | |
| } | } |
| |
| CD "%Temp%" | CD "%Temp%" |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' worker | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "\\wsl.localhost\openSUSE-Tumbleweed\srv\www\social" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' worker |
| |
| :: End</code> | :: End</code> |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/composer2' --working-dir='/srv/www/social' --no-cache install --no-dev | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/composer2' --working-dir='/srv/www/social' --no-cache install --no-dev |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' dbstructure update --force | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "\\wsl.localhost\openSUSE-Tumbleweed\srv\www\social" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' dbstructure update --force |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' dbstructure drop --execute | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "\\wsl.localhost\openSUSE-Tumbleweed\srv\www\social" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' dbstructure drop --execute |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' postupdate | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "\\wsl.localhost\openSUSE-Tumbleweed\srv\www\social" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' postupdate |
| |
| :: End</code> | :: End</code> |
| CD "%Temp%" | CD "%Temp%" |
| |
| "tar.exe" -czf "D:\Servers\Scheduled Backups\friendica-files-auto-%RANDOM%.tar.gz" -C "%SystemDrive%\www" "social" | "tar.exe" -czf "D:\Servers\Scheduled Backups\friendica-files-auto-%RANDOM%.tar.gz" -C "\\wsl.localhost\openSUSE-Tumbleweed\srv\www" "social" |
| "%ProgramFiles%\MariaDB 12.2\bin\mariadb-dump.exe" -u "root" --opt -r "D:\Servers\Scheduled Backups\%RANDOM%-friendica.sql" "friendica" | "%ProgramFiles%\MariaDB 12.2\bin\mariadb-dump.exe" -u "root" --opt -r "D:\Servers\Scheduled Backups\%RANDOM%-friendica.sql" "friendica" |
| |
| ::"tar.exe" -czf "%UserProfile%\Downloads\friendica-files-auto-%RANDOM%.tar.gz" -C "%SystemDrive%\www" "social" | ::"tar.exe" -czf "%UserProfile%\Downloads\friendica-files-auto-%RANDOM%.tar.gz" -C "\\wsl.localhost\openSUSE-Tumbleweed\srv\www" "social" |
| ::"%ProgramFiles%\MariaDB 12.2\bin\mariadb-dump.exe" -u "root" --opt -r "%UserProfile%\Downloads\%RANDOM%-friendica.sql" "friendica" | ::"%ProgramFiles%\MariaDB 12.2\bin\mariadb-dump.exe" -u "root" --opt -r "%UserProfile%\Downloads\%RANDOM%-friendica.sql" "friendica" |
| |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social/addon' gc --aggressive --prune='all' | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social/addon' gc --aggressive --prune='all' |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social/addon' --full --strict | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social/addon' fsck --full --strict |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/php' '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' cache clear | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "\\wsl.localhost\openSUSE-Tumbleweed\srv\www\social" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' cache clear |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' clearavatarcache | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "\\wsl.localhost\openSUSE-Tumbleweed\srv\www\social" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' clearavatarcache |
| |
| :: End</code> | :: End</code> |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social/addon' pull --depth '1' --recurse-submodules 'origin' 'develop' --rebase | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social/addon' pull --depth '1' --recurse-submodules 'origin' 'develop' --rebase |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social/addon' reset--hard 'origin/develop' | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social/addon' reset --hard 'origin/develop' |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social/addon' gc--aggressive--prune='all' | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social/addon' gc --aggressive --prune='all' |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social/addon' fsck --full --strict | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social/addon' fsck --full --strict |
| |
| ====== Initial Setup ====== | ====== Initial Setup ====== |
| |
| * 2026/01/21: Untested ((restored from back-up)) | * 2026/02/04: Untested ((restored from back-up)) |
| |
| ===== Initialize ===== | ===== Initialize ===== |
| * :?: Might be able to use ''--file'' on manually-created [[#localconfigphp|local.config.php]] instead | * :?: Might be able to use ''--file'' on manually-created [[#localconfigphp|local.config.php]] instead |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/mnt/c/www/social" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/mnt/c/www/social/bin/console' autoinstall --dbhost '172.28.112.1' --dbport '3365' --dbuser 'friendica' --dbdata 'friendica' --url 'https://social.realmofespionage.xyz' --basepath '/srv/www/social' --dbpass 'x' --admin 'espionage724@x' | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "\\wsl.localhost\openSUSE-Tumbleweed\srv\www\social" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console' autoinstall --dbhost '172.28.112.1' --dbport '3365' --dbuser 'friendica' --dbdata 'friendica' --url 'https://social.realmofespionage.xyz' --basepath '/srv/www/social' --dbpass 'x' --admin 'espionage724@x' |
| |
| ===== Account Create ===== | ===== Account Create ===== |
| * :!: ''x'' is the **nickname** chosen at website registration | * :!: ''x'' is the **nickname** chosen at website registration |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/mnt/c/www/social" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/mnt/c/www/social/bin/console' user password x | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "\\wsl.localhost\openSUSE-Tumbleweed\srv\www\social" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/social/bin/console' user password x |
| |
| ===== Disable Registration ===== | ===== Disable Registration ===== |
| **** | **** |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/mnt/c/www/social" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/mnt/c/www/social/bin/console.php' config 'config' 'register_policy' '0' | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "\\wsl.localhost\openSUSE-Tumbleweed\srv\www\social" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' config 'config' 'register_policy' '0' |
| |
| ===== Etc ===== | ===== Etc ===== |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' worker | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "\\wsl.localhost\openSUSE-Tumbleweed\srv\www\social" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' config 'system' 'basepath' '/srv/www/social' |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' dbstructure update --force | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "\\wsl.localhost\openSUSE-Tumbleweed\srv\www\social" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' config 'config' 'info' 'https://wiki.realmofespionage.xyz/servers;windows;nginx;friendica' |
| | |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' dbstructure drop --execute | |
| | |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' postupdate | |
| | |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' cache clear | |
| | |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' clearavatarcache | |
| | |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' config 'system' 'basepath' '/srv/www/social' | |
| | |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' config 'config' 'info' 'https://wiki.realmofespionage.xyz/servers;windows;nginx;friendica' | |
| |
| ====== Settings ====== | ====== Settings ====== |
| |
| * :!: 2026/01/30: Everything below WIP | |
| |
| ===== frio Theme ===== | ===== frio Theme ===== |
| su - | su - |
| |
| su -m 'www' -c "ee '/usr/local/www/social/config/local.config.php'" && clear | su -m 'www' -c "ee '/usr/local/www/social/config/local.config.php'" |
| |
| <code> | <code> |
| ===== Folder ===== | ===== Folder ===== |
| |
| * TODO | * TODO: Might be faster doing the ''tar'' within WSL |
| |
| "tar.exe" -czf "%UserProfile%\Downloads\friendica-files-manual-%RANDOM%.tar.gz" -C "%SystemDrive%\www" "social" | "tar.exe" -czf "%UserProfile%\Downloads\friendica-files-manual-%RANDOM%.tar.gz" -C "//wsl.localhost/openSUSE-Tumbleweed/srv/www" "social" |
| |
| ===== Database ===== | ===== Database ===== |
| |
| "%ProgramFiles%\MariaDB 12.2\bin\mariadb.exe" -u "root" "friendica" < "%UserProfile%\Downloads\friendica.sql" | "%ProgramFiles%\MariaDB 12.2\bin\mariadb.exe" -u "root" "friendica" < "%UserProfile%\Downloads\friendica.sql" |
| | |
| | ===== Etc ===== |
| | |
| | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "\\wsl.localhost\openSUSE-Tumbleweed\srv\www\social" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' worker |
| | |
| | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "\\wsl.localhost\openSUSE-Tumbleweed\srv\www\social" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' dbstructure update --force |
| | |
| | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "\\wsl.localhost\openSUSE-Tumbleweed\srv\www\social" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' dbstructure drop --execute |
| | |
| | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "\\wsl.localhost\openSUSE-Tumbleweed\srv\www\social" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' postupdate |
| | |
| | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "\\wsl.localhost\openSUSE-Tumbleweed\srv\www\social" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' cache clear |
| | |
| | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "\\wsl.localhost\openSUSE-Tumbleweed\srv\www\social" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' clearavatarcache |
| |