User Tools

Site Tools


servers:linux:nginx:joomla

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:linux:nginx:joomla [2026/11/16 21:11] – [CLI] Sean Rhoneservers:linux:nginx:joomla [2026/11/18 12:53] (current) – [Server Block] Sean Rhone
Line 141: Line 141:
  fastcgi_param 'HTTPS' 'on';  fastcgi_param 'HTTPS' 'on';
  fastcgi_pass 'unix:/run/php-fpm/main.sock';  fastcgi_pass 'unix:/run/php-fpm/main.sock';
 +}
 +
 +# End</code>
 +
 +===== Deny Directive =====
 +
 +  * https://docs.joomla.org/Delete_Installation_folder
 +
 +  sudo -e '/etc/nginx/default.d/joomla-deny.conf'
 +
 +<code>
 +# Installation Folder
 +location '~' '/installation/' {
 + deny 'all';
 +}
 +
 +location = '/installation/index.php' {
 + deny 'all';
 } }
  
Line 154: Line 172:
 server { server {
  listen '443' 'ssl';  listen '443' 'ssl';
- http2 'on';+ http2 'off';
  server_name 'realmofespionage.xyz';  server_name 'realmofespionage.xyz';
  root '/srv/www/main';  root '/srv/www/main';
Line 161: Line 179:
  include '/etc/nginx/default.d/main.conf';  include '/etc/nginx/default.d/main.conf';
  include '/etc/nginx/default.d/headers.conf';  include '/etc/nginx/default.d/headers.conf';
 +# include '/etc/nginx/default.d/joomla-deny.conf';
  
  client_max_body_size '1M';  client_max_body_size '1M';
Line 166: Line 185:
 # access_log '/var/log/nginx/main-access.log'; # access_log '/var/log/nginx/main-access.log';
 # error_log '/var/log/nginx/main-error.log'; # error_log '/var/log/nginx/main-error.log';
- 
-# location '~' '/installation/' { 
-#  deny 'all'; 
-# } 
- 
-# location = '/installation/index.php' { 
-#  deny 'all'; 
-# } 
  
  location '/api/' {  location '/api/' {
Line 208: Line 219:
 ===== Installer Deny ===== ===== Installer Deny =====
  
-  * Uncomment ''installation'' section+  * Uncomment ''joomla-deny.conf'' include
   * Do after initial setup   * Do after initial setup
  
Line 329: Line 340:
  
   * ''FBFAF9'' for **Body Background Colour**   * ''FBFAF9'' for **Body Background Colour**
- 
-==== Footer ==== 
- 
-=== Copyright === 
- 
-  * Last tested: 2024/02/01 on Joomla 5.1.0-dev, T3 Framework 3.2.0, and Purity III 2.1.0 
- 
-== Logo == 
- 
-**** 
- 
-  wget -O '/tmp/cc-by-sa-40.png' 'https://licensebuttons.net/l/by-sa/4.0/80x15.png' && sudo mv '/tmp/cc-by-sa-40.png' '/srv/www/main/images/cc-by-sa-40.png' && sudo chown 'nginx':'nginx' '/srv/www/main/images/cc-by-sa-40.png' && sudo restorecon -F -I -R '/srv/www/main/images/cc-by-sa-40.png' && sync 
- 
-== Text == 
- 
-  * Place text within the ''<section class="t3-copyright">'' section underneath the ''Bootstrap by Twitter'' and ''Font Awesome'' mentions 
-  * Remove ''Bootstrap by Twitter'' and ''Font Awesome'' mentions 
- 
-  sudo -e '/srv/www/main/templates/purity_iii/tpls/blocks/footer.php' && sudo chown 'nginx':'nginx' '/srv/www/main/templates/purity_iii/tpls/blocks/footer.php' 
- 
-<code> 
-          <small> 
-            <img src="https://realmofespionage.xyz/images/cc-by-sa-40.png" width="80" height="15" /> All content and data available on Realm of Espionage is available under the <a href="https://creativecommons.org/licenses/by-sa/4.0" target="_blank">Creative Commons Attribution-ShareAlike 4.0 International</a> license. 
-          </small></code> 
  
 ===== Articles ===== ===== Articles =====
Line 367: Line 354:
  
 === Temp === === Temp ===
- 
-**** 
  
 <code> <code>
Line 384: Line 369:
  
 ==== Site Meta Description ==== ==== Site Meta Description ====
- 
-**** 
  
 <code> <code>
Line 391: Line 374:
  
 ==== Content Rights ==== ==== Content Rights ====
- 
-**** 
  
   Creative Commons Attribution-ShareAlike 4.0 International   Creative Commons Attribution-ShareAlike 4.0 International
Line 433: Line 414:
 ExecStart='/usr/bin/git' -C '/srv/www/main' pull origin '7.0-dev' --rebase ExecStart='/usr/bin/git' -C '/srv/www/main' pull origin '7.0-dev' --rebase
  
-ExecStart='/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/main.conf' '/usr/bin/composer' --working-dir='/srv/www/main' --no-cache install --no-interaction --no-dev --ignore-platform-req='ext-ldap' +ExecStart='/usr/bin/php' -c '/etc/php8/cli/main.ini' '/usr/bin/composer' --working-dir='/srv/www/main' --no-cache install --no-interaction --no-dev --ignore-platform-req='ext-ldap' 
-ExecStart='/usr/bin/npm' --prefix '/srv/www/main' ci --logs-max='0'+ExecStart='/usr/bin/node26' '/usr/lib64/node_modules/npm26/bin/npm-cli.js' --prefix '/srv/www/main' 'ci' --logs-max='0'
  
 ExecStartPost='/usr/bin/rm' -f '/srv/www/main/administrator/cache/autoload_psr4.php' ExecStartPost='/usr/bin/rm' -f '/srv/www/main/administrator/cache/autoload_psr4.php'
Line 467: Line 448:
 === Service === === Service ===
  
-  * [[linux:notes:ext4|ext4 NAS]]+  * [[linux:notes:ext2_nas|ext2 NAS]]
  
   mkdir -p ~/'backups' && sudo -e '/etc/systemd/system/main-fb.service' && sudo sed -i 's/CHANGEME/'$USER'/g' '/etc/systemd/system/main-fb.service'   mkdir -p ~/'backups' && sudo -e '/etc/systemd/system/main-fb.service' && sudo sed -i 's/CHANGEME/'$USER'/g' '/etc/systemd/system/main-fb.service'
Line 519: Line 500:
 === Service === === Service ===
  
-  * [[linux:notes:ext4|ext4 NAS]]+  * [[linux:notes:ext2_nas|ext2 NAS]]
  
   mkdir -p ~/'backups' && sudo mkdir -p '/srv/lib/mysql/tmp' && sudo -e '/etc/systemd/system/main-db.service' && sudo sed -i 's/'CHANGEME'/'$USER'/g' '/etc/systemd/system/main-db.service'   mkdir -p ~/'backups' && sudo mkdir -p '/srv/lib/mysql/tmp' && sudo -e '/etc/systemd/system/main-db.service' && sudo sed -i 's/'CHANGEME'/'$USER'/g' '/etc/systemd/system/main-db.service'
/srv/www/wiki/data/attic/servers/linux/nginx/joomla.1794881486.txt.gz · Last modified: by Sean Rhone