StuRa Diskussion:Server/SRS13/2015: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
K (ArturasMiller verschob die Seite Diskussion:Server/SRS13/2015 nach StuRa Diskussion:Server/SRS13/2015) |
|||
(9 dazwischenliegende Versionen von 4 Benutzern werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
= Diskussion:Jail/SRS13_OLD = | |||
== etherpad-lite ressourcen == | == etherpad-lite ressourcen == | ||
Zeile 4: | Zeile 5: | ||
* abiword dazu ... das wird fett | * abiword dazu ... das wird fett | ||
[[Benutzer:JohannesSchneemann|JohannesSchneemann]] | [[Benutzer:JohannesSchneemann|JohannesSchneemann]] | ||
=== config === | |||
* '''[https://github.com/Pita/etherpad-lite/issues/28 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" { } | |||
* [http://redmine.lighttpd.net/wiki/lighttpd/Docs:ModProxy Dokumenatation: mod_proxy] | |||
== ehterpad-lite ghetto rc script == | == ehterpad-lite ghetto rc script == | ||
Zeile 35: | Zeile 116: | ||
esac | esac | ||
exit 0 | exit 0 | ||
== feuchte Träume == | |||
* dudle | |||
* redmine | |||
* [http://pentabarf.org/Main_Page pentabarf] (ESE) | |||
* [https://github.com/cookieBerlin/engelsystem engelsystem] (ESE) | |||
== $wgActionLockdown == | |||
http://www.mediawiki.org/wiki/Extension:Lockdown#.24wgActionLockdown [[Benutzer:Blotter|Blotter]] ([[Benutzer Diskussion:Blotter|Diskussion]]) |
Aktuelle Version vom 23. Februar 2020, 17:27 Uhr
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)