Browse Source

initial commit

pull/1/head
mxmehl 5 years ago
commit
e4c87a11b4
  1. 3
      .gitignore
  2. 1
      build-single.sh
  3. 20
      create-mime.assign.pl
  4. 14
      lighttpd-fsfe.conf

3
.gitignore

@ -0,0 +1,3 @@
config.cfg
status/*
fsfe.org/*

1
build-single.sh

@ -0,0 +1 @@
/home/max/Dokumente/Selfcoded/build-single.sh

20
create-mime.assign.pl

@ -0,0 +1,20 @@
#!/usr/bin/perl -w
use strict;
open MIMETYPES, "/etc/mime.types" or exit;
print "mimetype.assign = (\n";
my %extensions;
while(<MIMETYPES>) {
chomp;
s/\#.*//;
next if /^\w*$/;
if(/^([a-z0-9\/+-.]+)\s+((?:[a-z0-9.+-]+[ ]?)+)$/) {
foreach(split / /, $2) {
# mime.types can have same extension for different
# mime types
next if $extensions{$_};
$extensions{$_} = 1;
print "\".$_\" => \"$1\",\n";
}
}
}
print ")\n";

14
lighttpd-fsfe.conf

@ -0,0 +1,14 @@
server.modules = ( "mod_access" )
$HTTP["remoteip"] !~ "127.0.0.1" {
url.access-deny = ("") # prevent hosting to the network
}
# change port and document-root accordingly
server.port = 5080
server.document-root = "/home/max/subversion/fsfe/local-build/fsfe.org"
server.errorlog = "/dev/stdout"
server.dir-listing = "enable"
dir-listing.encoding = "utf-8"
index-file.names = ("index.html", "index.en.html")
include_shell "./create-mime.assign.pl"
Loading…
Cancel
Save