nomad

HCL and Docker files for Nomad deployments
git clone https://git.in0rdr.ch/nomad.git
Log | Files | Refs | Pull requests

index.html.tmpl (1699B)


      1 <pre>
      2 THE NULL POINTER
      3 ================
      4 {{- with nomadVar "nomad/jobs/0x0" }}
      5 {{- $fhost := .host }}
      6 {{- $fhost_url := (printf "http://%s" $fhost) }}
      7 HTTP POST files here:
      8     curl -F'file=@yourfile.png' {{ $fhost }}
      9 You can also POST remote URLs:
     10     curl -F'url=http://example.com/image.jpg' {{ $fhost }}
     11 Or you can shorten URLs:
     12     curl -F'shorten=http://example.com/some/long/url' {{ $fhost }}
     13 {{ end }}
     14 
     15 File URLs are valid for at least 30 days and up to a year (see below).
     16 Shortened URLs do not expire.
     17 {% set max_size = config["MAX_CONTENT_LENGTH"]|filesizeformat(True) %}
     18 Maximum file size: {{`{{ max_size }}`}}
     19 Not allowed: {{`{{ config["FHOST_MIME_BLACKLIST"]|join(", ") }}`}}
     20 </pre>
     21 
     22 <pre>
     23 OPERATOR NOTES
     24 --------------
     25 
     26 This instance is proudly powered by mias code:
     27 https://git.0x0.st/mia/0x0
     28 </pre>
     29 
     30 <pre>
     31 FILE RETENTION PERIOD
     32 ---------------------
     33 
     34 retention = min_age + (-max_age + min_age) * pow((file_size / max_size - 1), 3)
     35 
     36    days
     37     365 |  \\
     38         |   \\
     39         |    \\
     40         |     \\
     41         |      \\
     42         |       \\
     43         |        ..
     44         |          \\
     45   197.5 | ----------..-------------------------------------------
     46         |             ..
     47         |               \\
     48         |                ..
     49         |                  ...
     50         |                     ..
     51         |                       ...
     52         |                          ....
     53         |                              ......
     54      30 |                                    ....................
     55           0{{`{{ ((config["MAX_CONTENT_LENGTH"]/2)|filesizeformat(True)).split(" ")[0].rjust(27) }}{{ max_size.split(" ")[0].rjust(27) }}`}}
     56            {{`{{ max_size.split(" ")[1].rjust(54) }}`}}
     57 </pre>