====== Information ======
* Files
* [[Information:Realm of Espionage]]
* https://files.realmofespionage.xyz
===== Prerequisites =====
* [[windows:10|Windows 10]]
* [[servers;windows;freenginx_php_php-cgi|freenginx]]
* [[servers;windows;nginx;lets_encrypt|Certbot (Let's Encrypt)]]
====== Directory ======
****
MKDIR "%SystemDrive%\www\files"
====== freenginx Configuration ======
===== Server Block =====
notepad "%SystemDrive%\www\nginx\vhosts.d\files.conf"
server {
listen "443" "ssl";
http2 "on";
server_name "files.realmofespionage.xyz";
root "C:/www/files";
index "index.html";
include C:/www/nginx/default.d/headers.conf;
add_header Content-Security-Policy "default-src 'self'" always;
# access_log logs/files-access.log;
# error_log logs/files-error.log;
}
# End
"%SystemDrive%\www\scripts\freenginx\Reload.bat"
====== index.html ======
notepad "%SystemDrive%\www\files\index.html"
../
StartPage
NAME1
NAME2
===== Hidden =====
notepad "%SystemDrive%\www\files\index.html"
Zzz