Move example site and config into its own directory
git-svn-id: file:///srv/svn/repo/marisa/trunk@50 d6811dac-2434-b64a-9ddc-f563ab233461
This commit is contained in:
36
example/partage.conf
Normal file
36
example/partage.conf
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
# TCP or unix Socket to listen on.
|
||||||
|
# When unix sockets are used, the content will be served over FastCGI.
|
||||||
|
#listen = /var/run/partage-fcgi.sock
|
||||||
|
listen = 127.0.0.1:9000
|
||||||
|
|
||||||
|
# Base to use when constructing URI to files uploaded.
|
||||||
|
# The full URI must be specified, in the form SCHEME://HOST[:PORT]
|
||||||
|
baseuri = http://127.0.0.1:9000
|
||||||
|
|
||||||
|
# Drop privilege to the user and group specified.
|
||||||
|
# When only the user is specified, the default group of the user will
|
||||||
|
# be used.
|
||||||
|
#user = www
|
||||||
|
#group = daemon
|
||||||
|
|
||||||
|
# Change the root directory to the following directory.
|
||||||
|
# When a chroot is set, all path must be given according to the chroot.
|
||||||
|
# Note: the configuration file is read before chrooting.
|
||||||
|
#chroot = /var/www
|
||||||
|
|
||||||
|
# Path to the different path used by the server. Must take into account
|
||||||
|
# the chroot if set.
|
||||||
|
rootdir = example/static
|
||||||
|
tmplpath = example/templates
|
||||||
|
filepath = example/files
|
||||||
|
metapath = example/meta
|
||||||
|
|
||||||
|
# URI context that files will be served on
|
||||||
|
filectx = /f/
|
||||||
|
|
||||||
|
# Maximum per-file upload size (in bytes)
|
||||||
|
maxsize = 536870912 # 512Mib
|
||||||
|
|
||||||
|
# Default expiration time (in seconds). An expiration time of 0 seconds
|
||||||
|
# means no expiration.
|
||||||
|
expiry = 86400 # 24 hours
|
||||||
@@ -66,7 +66,10 @@ function sendfiles(files) {
|
|||||||
// e.loaded - how many bytes downloaded
|
// e.loaded - how many bytes downloaded
|
||||||
// e.lengthComputable = true if the server sent Content-Length header
|
// e.lengthComputable = true if the server sent Content-Length header
|
||||||
// e.total - total number of bytes (if lengthComputable)
|
// e.total - total number of bytes (if lengthComputable)
|
||||||
|
if (e.lengthComputable) {
|
||||||
|
progressbar.max = e.total
|
||||||
|
}
|
||||||
|
progressbar.value = e.loaded
|
||||||
}
|
}
|
||||||
|
|
||||||
xhr.onreadystatechange = function() {
|
xhr.onreadystatechange = function() {
|
||||||
|
Before Width: | Height: | Size: 141 KiB After Width: | Height: | Size: 141 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
@@ -6,7 +6,7 @@
|
|||||||
<meta name="robots" content="noindex,nofollow" />
|
<meta name="robots" content="noindex,nofollow" />
|
||||||
<meta name="viewport" content="width=device-width">
|
<meta name="viewport" content="width=device-width">
|
||||||
<link rel="stylesheet" type="text/css" href="/partage.css" />
|
<link rel="stylesheet" type="text/css" href="/partage.css" />
|
||||||
<link rel="icon" type="image/png" href="/favicon.ico" />
|
<link rel="icon" type="image/ico" href="/favicon.ico" />
|
||||||
<title>Partage</title>
|
<title>Partage</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@@ -5,13 +5,13 @@
|
|||||||
<meta name="author" content="z3bra">
|
<meta name="author" content="z3bra">
|
||||||
<meta name="viewport" content="width=device-width">
|
<meta name="viewport" content="width=device-width">
|
||||||
<link rel="stylesheet" type="text/css" href="/partage.css" />
|
<link rel="stylesheet" type="text/css" href="/partage.css" />
|
||||||
<link rel="icon" type="image/png" href="/favicon.ico" />
|
<link rel="icon" type="image/ico" href="/favicon.ico" />
|
||||||
<title>Partage</title>
|
<title>Partage</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header>
|
<header>
|
||||||
<h1>partage</h1>
|
|
||||||
<img id="logo" src="/partage.png" />
|
<img id="logo" src="/partage.png" />
|
||||||
|
<h1>partage</h1>
|
||||||
</header>
|
</header>
|
||||||
<ul>
|
<ul>
|
||||||
{{range .Links}}
|
{{range .Links}}
|
||||||
Reference in New Issue
Block a user