User Tools

Site Tools


servers:windows:nginx:lychee

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
servers:windows:nginx:lychee [2025/01/17 11:24] Sean Rhoneservers:windows:nginx:lychee [2025/05/16 21:39] (current) – external edit 127.0.0.1
Line 4: Line 4:
   * [[Information:Realm of Espionage]]   * [[Information:Realm of Espionage]]
   * https://media.realmofespionage.xyz   * https://media.realmofespionage.xyz
 +
 +  * :!: 2025/01/17: WIP; fails at [[#composer|Composer]]
  
 ===== Prerequisites ===== ===== Prerequisites =====
Line 25: Line 27:
  
   * https://nodejs.org/en/download   * https://nodejs.org/en/download
-  * Last tested: ''node-v22.12.0-x64.msi''+  * Last tested: ''node-v22.13.0-x64.msi''
  
   * Node.js runtime, npm package manager, Add to PATH (corepack manager and Online documentation not required)   * Node.js runtime, npm package manager, Add to PATH (corepack manager and Online documentation not required)
Line 54: Line 56:
 extension = "openssl" extension = "openssl"
 extension = "sqlite3" extension = "sqlite3"
 +extension = "sodium"
 zend_extension = "opcache" zend_extension = "opcache"
  
Line 66: Line 69:
  
   CD "%SystemDrive%\" && "php.exe" -c "%SystemDrive%\www\php\media.ini" -m   CD "%SystemDrive%\" && "php.exe" -c "%SystemDrive%\www\php\media.ini" -m
 +
 +===== Lychee =====
 +
 +  * https://github.com/LycheeOrg/Lychee/blob/master/.env.example
 +
 +  notepad "%SystemDrive%\www\media\.env"
 +
 +<code>
 +APP_URL="https://media.realmofespionage.xyz"
 +</code>
  
 ====== Dependencies ====== ====== Dependencies ======
Line 73: Line 86:
   * https://github.com/composer/composer/releases   * https://github.com/composer/composer/releases
   * Latest ''composer.phar'' in ''www\ext'' folder   * Latest ''composer.phar'' in ''www\ext'' folder
 +  * :!: 2025/01/17: This fails and is likely the cause for non-rendering later
  
   MKDIR "%SystemDrive%\www\ext"   MKDIR "%SystemDrive%\www\ext"
Line 81: Line 95:
  
 ===== Node.js ===== ===== Node.js =====
- 
-**** 
  
   CD "%SystemDrive%\www\media" && npm ci --verbose   CD "%SystemDrive%\www\media" && npm ci --verbose
 +
 +  CD "%SystemDrive%\www\media" && npm run "build" --verbose
  
 ====== freenginx + PHP-CGI Configuration ====== ====== freenginx + PHP-CGI Configuration ======
Line 118: Line 132:
     http2 "on";     http2 "on";
     server_name "media.realmofespionage.xyz";     server_name "media.realmofespionage.xyz";
-    root "C:/www/media";+    root "C:/www/media/public";
     index "index.php";     index "index.php";
  
Line 131: Line 145:
 #    error_log  logs/media-error.log; #    error_log  logs/media-error.log;
  
-    location / +    if (!-e $request_filename) 
-        index index.php; +    
-        try_files $uri $uri/ @rewrite;+        rewrite ^/(.*)$ /index.php?/$1 last
 +        break;
     }     }
  
-    location @rewrite { +    location ~ [^/]\.php(/|$) { 
-        rewrite ^/picture((/|$).*)$ /picture.php$1 last; +        return 403;
-        rewrite ^/index((/|$).*)$ /index.php$1 last; +
-        rewrite ^/i((/|$).*)$ /i.php$1 last;+
     }     }
  
-}</code>+    rewrite ^/(.+)/$ /$1 permanent; 
 +} 
 + 
 +# End</code>
  
   "%SystemDrive%\www\scripts\freenginx\Reload.bat"   "%SystemDrive%\www\scripts\freenginx\Reload.bat"
Line 157: Line 173:
  
 <code> <code>
-:: PHP 8.3 
-CD "%SystemDrive%\php-8.3"*"-nts-Win32-"*"-x64\" 
- 
 SET "PHP_FCGI_MAX_REQUESTS=0" SET "PHP_FCGI_MAX_REQUESTS=0"
 SET "PHP_FCGI_CHILDREN=1" SET "PHP_FCGI_CHILDREN=1"
/srv/www/wiki/data/attic/servers/windows/nginx/lychee.1737131074.txt.gz · Last modified: by Sean Rhone