Changeset 67 in code for trunk/example
- Timestamp:
- Feb 11, 2024, 2:08:18 AM (16 months ago)
- Location:
- trunk/example
- Files:
-
- 2 added
- 2 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/example/marisa.conf
r65 r67 1 # TCP or unix Socket to listen on. 2 # When unix sockets are used, the content will be served over FastCGI. 3 #listen = /var/run/marisa-fcgi.sock 4 listen = 127.0.0.1:9000 5 6 # Base to use when constructing URI to files uploaded. 7 # The full URI must be specified, in the form SCHEME://HOST[:PORT] 8 baseuri = http://127.0.0.1:9000 1 [marisa] 2 # TCP or Unix socket to listen on. 3 # When the Unix socket is used, the content will be served through FastCGI 4 # listen = /var/run/marisa.sock 5 # listen = 127.0.0.1:9000 9 6 10 7 # Drop privilege to the user and group specified. 11 # When only the user is specified, the default group of the user will12 # be used.13 # user = www14 # group = daemon8 # When only the user is specified, the default group of the user 9 # will be used. 10 # user = www 11 # group = www 15 12 16 13 # Change the root directory to the following directory. 17 # When a chroot is set, all path must be given according to the chroot. 18 # Note: the configuration file is read before chrooting. 19 #chroot = /var/www 14 # When a chroot(2) is set, all paths must be given according to it. 15 # Note: the configuration file is read before it happens 16 # chroot = 17 [www] 18 # baseuri = http://127.0.0.1:9000 20 19 21 # Path to the different path used by the server. Must take into account22 # the chroot i f set.23 rootdir =static24 tmplpath =templates25 filepath =files26 metapath =meta20 # Path to the resources used by the server, must take into account 21 # the chroot is set 22 # rootdir = ./static 23 # tmplpath = ./templates 24 # filepath = ./files 25 # metapath = ./meta 27 26 28 27 # URI context that files will be served on 29 filectx = /f/28 # filectx = /f/ 30 29 31 30 # Maximum per-file upload size (in bytes) 32 maxsize = 536870912 # 512Mib 31 # maxsize = 536870912 # 512 MiB 33 32 34 # Default expiration time (in seconds). An expiration time of 0 seconds35 # means no expiration.36 expiry = 86400 # 24 hours33 # Default expiration time (in seconds). 34 # An expiration time of 0 seconds means no expiration. 35 # expiry = 86400 # 24 hours -
trunk/example/templates/index.html
r65 r67 1 <!DOCTYPE HTML >1 <!DOCTYPE HTML PUBLIC "//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2 2 <html> 3 3 <head> 4 <meta charset="utf-8"> 5 <meta name="author" content="z3bra, Izuru Yakumo"> 6 <meta name="robots" content="noindex,nofollow" > 4 <link rel="icon" href="/favicon.ico"> 5 <link rel="stylesheet" href="/marisa.css"> 6 <meta http-equiv="Content-type" content="text/html; charset=utf-8"> 7 <meta name="author" content="Izuru Yakumo"> 7 8 <meta name="viewport" content="width=device-width"> 8 <link rel="stylesheet" type="text/css" href="/marisa_98.css" >9 <link rel="icon" href="/marisa.png">10 9 <title>Marisa</title> 11 10 </head> 12 11 <body> 13 <header> 14 <img id="logo" src="/marisa.png" > 15 <h1>marisa</h1> 16 </header> 17 <form enctype="multipart/form-data" method="post"> 18 <div id="dropzone"></div> 19 <div id="fallbackform" class="dropzone"> 20 <input id="filebox" name="file" type="file" multiple> 21 <input id="output" name="output" type="hidden" value='html' > 22 <input type="submit" value="Upload"> 23 </div> 24 <section id="formsettings"> 25 <label for="expiry"> Destroy after </label> 26 <select id="expiry" name="expiry"> 27 <option value="900"> 15 minutes </option> 28 <option value="3600"> 1 hour </option> 29 <option value="28800"> 8 hours </option> 30 <option value="86400" selected> 1 day </option> 31 <option value="604800"> 1 week </option> 32 </select> 33 </section> 34 </form> 35 <p>File size limited to {{.Maxsize}}.</p> 36 <div id="uploads">{{if .Links}} 37 <ul> 38 {{range .Links}}<li><a href="{{.}}">{{.}}</a></li>{{end}} 39 </ul> 40 {{end}}</div> 12 <table border="1" align="center"> 13 <thead> 14 <img class="logo" src="/marisa.png"> 15 <br> 16 <h1>Marisa</h1> 17 </thead> 18 <tbody> 19 <form enctype="multipart/form-data" method="POST"> 20 <input class="file" name="file" type="file"><br> 21 <input name="output" type="hidden" value="html"><br> 22 <input type="submit"><br> 23 <label for="expiry">Destroy after</label> 24 <select name="expiry"> 25 <option value="900">15 minutes</option> 26 <option value="3600">1 hour</option> 27 <option value="28800">8 hours</option> 28 <option value="86400">1 day</option> 29 <option value="604800">1 week</option> 30 </select> 31 </form> 32 <p> 33 File size limited to {{.Maxsize}}. 34 </p> 35 </tbody> 36 <tfoot> 37 {{if .Links}} 38 <tr> 39 {{range .Links}}<td><a href="{{.}}">{{.}}</a></td>{{end}} 40 </tr> 41 {{end}} 42 <br><hr> 43 <p>© 2024 Izuru Yakumo</p> 44 </tfoot> 45 </table> 41 46 </body> 42 47 </html>
Note:
See TracChangeset
for help on using the changeset viewer.