StuRa Diskussion:Server/SRS13/2015
(Weitergeleitet von Diskussion:Server/SRS13/2015)
Diskussion:Jail/SRS13_OLD[Bearbeiten]
etherpad-lite ressourcen[Bearbeiten]
- etherpad-lite allein ist schön schlank
- abiword dazu ... das wird fett
config[Bearbeiten]
- funzt (noch) nicht
- in /etc/rc.conf:
lighttpd_enable="YES"
- generell:
mkdir -p /usr/local/www/data chown -R www:www /usr/local/www/
- weitere Einstellungen in /usr/local/etc/lighttpd.conf
- Testen der Einstellungen: lighttpd -t -f lighttpd.conf
- als reverse proxy
- hashes zur zuweisung an korrekten server
- allgemein (minimal) lighttpd.conf:
server.modules = ( "mod_access", "mod_proxy" ) server.port = 80 server.bind = "141.56.50.13" $HTTP["host"] =~ "^notizen.stura-dresden.de$" { proxy.balance = "hash" proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => 9001 ) ) ) }
- oder FreeBSD spezifisch:
- modules.conf:
server.modules = ( "mod_access", ) include "conf.d/proxy.conf"
- conf.d/proxy.conf:
proxy.balance = "hash" $HTTP["host"] =~ "^notizen.stura-dresden.de$" { proxy.server = ( "" => ( ( "host" => "141.56.50.13", "port" => 9001 ) ) ) }
- lighttpd.conf:
var.log_root = "/var/log/lighttpd" var.server_root = "/usr/local/www/data" var.state_dir = "/var/run" var.home_dir = "/var/spool/lighttpd" var.conf_dir = "/usr/local/etc/lighttpd" var.vhosts_dir = server_root + "/vhosts" var.cache_dir = "/var/cache/lighttpd" var.socket_dir = home_dir + "/sockets" include "modules.conf" server.port = 80 server.bind = "141.56.50.13" server.event-handler = "freebsd-kqueue" server.username = "www" server.groupname = "www" server.document-root = "/usr/local/www/data/" server.pid-file = state_dir + "/lighttpd.pid" server.errorlog = log_root + "/error.log" include "conf.d/access_log.conf" include "conf.d/debug.conf" server.network-backend = "writev" server.max-fds = 2048 server.stat-cache-engine = "simple" server.max-connections = 1024 index-file.names += ( "index.xhtml", "index.html", "index.htm", "default.htm", "index.php" ) url.access-deny = ( "~", ".inc" ) $HTTP["url"] =~ "\.pdf$" { server.range-requests = "disable" } static-file.exclude-extensions = ( ".php", ".pl", ".fcgi", ".scgi" ) include "conf.d/mime.conf" include "conf.d/dirlisting.conf" server.follow-symlink = "enable" server.upload-dirs = ( "/var/tmp" ) $SERVER["socket"] == "141.56.50.13:80" { }
ehterpad-lite ghetto rc script[Bearbeiten]
- und nochmal: funzt, ist aber nicht standard konform ... eher ein hässlicher hack
#!/bin/sh start(){ echo "staring etherpad-lite ..." >2& su -m etherpad-lite -c /home/etherpad-lite/etherpad-lite/bin/run.sh& echo "done" >2& } stop(){ echo "stopping ehterpad-lite ..." >2& kill `ps -a | grep "node server.js" | grep -v grep | awk '{print $1}'` echo "done" >2& } case "$1" in start) start ;; stop) stop ;; restart) stop start ;; *) echo "USAGE: {start|stop|restart}" >2& exit 1 ;; esac exit 0
feuchte Träume[Bearbeiten]
- dudle
- redmine
- pentabarf (ESE)
- engelsystem (ESE)
$wgActionLockdown[Bearbeiten]
http://www.mediawiki.org/wiki/Extension:Lockdown#.24wgActionLockdown Blotter (Diskussion)