User Tools

Site Tools


servers:linux:nginx:dokuwiki

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:dokuwiki [2025/09/18 03:26] – [Service] Sean Rhoneservers:linux:nginx:dokuwiki [2025/10/20 15:50] (current) – [Initial Setup] Sean Rhone
Line 131: Line 131:
 ====== Initial Setup ====== ====== Initial Setup ======
  
-  * :!: TODO: https://www.dokuwiki.org/rewrite+  * TODO: https://www.dokuwiki.org/rewrite ((notes; rewrite's been working fine though))
  
   * https://wiki.realmofespionage.xyz/install.php   * https://wiki.realmofespionage.xyz/install.php
Line 143: Line 143:
 ===== Template Style Settings ===== ===== Template Style Settings =====
  
-  * Alternative background color: ''#484848'' +  * Alternative background color: ''#484848'' (gray) 
-  * The general link color: ''#3d8bff'' +  * The general link color: ''#3d8bff'' (blue) 
-  * :!: The width of the full site: ''100em'' ((this caused some kind of scrollbar I believe on a 1280x800 laptop))+  * The width of the full site: ''85%''
  
 ===== nginx Server Block Deny Directives ===== ===== nginx Server Block Deny Directives =====
Line 255: Line 255:
 Type=oneshot Type=oneshot
  
-ExecStartPre='/usr/bin/git' -C '/srv/www/wiki' reset --hard+ExecStart='/usr/bin/git' -C '/srv/www/wiki' reset --hard
 ExecStart='/usr/bin/git' -C '/srv/www/wiki' gc --aggressive --prune='all' ExecStart='/usr/bin/git' -C '/srv/www/wiki' gc --aggressive --prune='all'
 ExecStart='/usr/bin/git' -C '/srv/www/wiki' fsck --full --strict ExecStart='/usr/bin/git' -C '/srv/www/wiki' fsck --full --strict
Line 327: Line 327:
   sudo tar -xzf ~/'dokuwiki-files-'*'.tar.gz' -C '/srv/www/wiki' 'data/pages' 'data/meta' 'data/media' 'data/media_meta' 'data/attic' 'data/media_attic' 'conf' && sudo chown -R 'wwwrun' '/srv/www/wiki' && sudo chmod -R '0755' '/srv/www/wiki'   sudo tar -xzf ~/'dokuwiki-files-'*'.tar.gz' -C '/srv/www/wiki' 'data/pages' 'data/meta' 'data/media' 'data/media_meta' 'data/attic' 'data/media_attic' 'conf' && sudo chown -R 'wwwrun' '/srv/www/wiki' && sudo chmod -R '0755' '/srv/www/wiki'
  
-===== dos2unix =====+===== Git Fix =====
  
-****+  :!: Set email for ''user.email'' 
 + 
 +  sudo su 'wwwrun' -s '/bin/bash' 
 + 
 +  rm -Rf '/srv/www/wiki/.git' 
 + 
 +  git -C '/srv/www/wiki' init --initial-branch='master' 
 + 
 +  git -C '/srv/www/wiki' add '.' 
 + 
 +  git -C '/srv/www/wiki' config 'user.email' 'espionage724@x' 
 + 
 +  git -C '/srv/www/wiki' commit --message='x' 
 + 
 +  git -C '/srv/www/wiki' remote add 'origin' 'https://github.com/dokuwiki/dokuwiki.git' 
 + 
 +  git -C '/srv/www/wiki' pull --depth '1' --recurse-submodules 'origin' 'master' --rebase 
 + 
 +  git -C '/srv/www/wiki' reset --hard 'origin/master' 
 + 
 +  git -C '/srv/www/wiki' gc --aggressive --prune='all' 
 + 
 +  git -C '/srv/www/wiki' fsck --full --strict
  
-  find '/srv/www/wiki' -type f -print0 | sudo xargs -0 dos2unix -- && sudo chown -R 'wwwrun':'www' '/srv/www/wiki' && sudo chmod -R '0755' '/srv/www/wiki'+  exit
  
 ===== Start nginx ===== ===== Start nginx =====
/usr/local/www/wiki/data/attic/servers/linux/nginx/dokuwiki.1758180400.txt.gz · Last modified: by Sean Rhone

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki