|
| 1 | +# all folders and files are relative to the path |
| 2 | +# where fileb0x was run at! |
| 3 | + |
| 4 | +# default: main |
| 5 | +pkg: static |
| 6 | + |
| 7 | +# destination |
| 8 | +dest: "./static" |
| 9 | + |
| 10 | +# gofmt |
| 11 | +# type: bool |
| 12 | +# default: false |
| 13 | +fmt: true |
| 14 | + |
| 15 | +# build tags for the main b0x.go file |
| 16 | +tags: "" |
| 17 | + |
| 18 | +# updater allows you to update a b0x in a running server |
| 19 | +# without having to restart it |
| 20 | +updater: |
| 21 | + # disabled by default |
| 22 | + enabled: false |
| 23 | + |
| 24 | + # empty mode creates a empty b0x file with just the |
| 25 | + # server and the filesystem, then you'll have to upload |
| 26 | + # the files later using the cmd: |
| 27 | + # fileb0x -update=http://server.com:port b0x.yaml |
| 28 | + # |
| 29 | + # it avoids long compile time |
| 30 | + empty: false |
| 31 | + |
| 32 | + # amount of uploads at the same time |
| 33 | + workers: 3 |
| 34 | + |
| 35 | + # to get a username and password from a env variable |
| 36 | + # leave username and password blank (username: "") |
| 37 | + # then set your username and password in the env vars |
| 38 | + # (no caps) -> fileb0x_username and fileb0x_password |
| 39 | + username: "user" |
| 40 | + password: "pass" |
| 41 | + port: 8041 |
| 42 | + |
| 43 | +# compress files |
| 44 | +# at the moment, only supports gzip |
| 45 | +# |
| 46 | +# type: object |
| 47 | +compression: |
| 48 | + # activates the compression |
| 49 | + # |
| 50 | + # type: bool |
| 51 | + # default: false |
| 52 | + compress: false |
| 53 | + |
| 54 | + # valid values are: |
| 55 | + # -> "NoCompression" |
| 56 | + # -> "BestSpeed" |
| 57 | + # -> "BestCompression" |
| 58 | + # -> "DefaultCompression" or "" |
| 59 | + # |
| 60 | + # type: string |
| 61 | + # default: "DefaultCompression" # when: Compress == true && Method == "" |
| 62 | + method: "" |
| 63 | + |
| 64 | + # true = do it yourself (the file is written as gzip compressed file into the memory file system) |
| 65 | + # false = decompress files at run time (while writing file into memory file system) |
| 66 | + # |
| 67 | + # type: bool |
| 68 | + # default: false |
| 69 | + keep: false |
| 70 | + |
| 71 | +# --------------- |
| 72 | +# -- DANGEROUS -- |
| 73 | +# --------------- |
| 74 | +# |
| 75 | +# cleans the destination folder (only b0xfiles) |
| 76 | +# you should use this when using the spread function |
| 77 | +# type: bool |
| 78 | +# default: false |
| 79 | +clean: false |
| 80 | + |
| 81 | +# default: ab0x.go |
| 82 | +output: "ab0x.go" |
| 83 | + |
| 84 | +# [noprefix] disables adding "a" prefix to output |
| 85 | +# type: bool |
| 86 | +# default: false |
| 87 | +noprefix: false |
| 88 | + |
| 89 | +# [unexporTed] builds non-exporTed functions, variables and types... |
| 90 | +# type: bool |
| 91 | +# default: false |
| 92 | +unexporTed: false |
| 93 | + |
| 94 | +# [spread] means it will make a file to hold all fileb0x data |
| 95 | +# and each file into a separaTed .go file |
| 96 | +# |
| 97 | +# example: |
| 98 | +# theres 2 files in the folder assets, they're: hello.json and world.txt |
| 99 | +# when spread is activaTed, fileb0x will make a file: |
| 100 | +# b0x.go or [output]'s data, assets_hello.json.go and assets_world.txt.go |
| 101 | +# |
| 102 | +# |
| 103 | +# type: bool |
| 104 | +# default: false |
| 105 | +spread: true |
| 106 | + |
| 107 | +# [lcf] log changed files when spread is active |
| 108 | +lcf: true |
| 109 | + |
| 110 | +# [debug] is a debug mode where the files are read directly from the file |
| 111 | +# sytem. Useful for web dev when files change when the server is running. |
| 112 | +# type: bool |
| 113 | +# default: false |
| 114 | +debug: false |
| 115 | + |
| 116 | +# type: array of objects |
| 117 | +custom: |
| 118 | + - files: |
| 119 | + - "./swagger-ui/" |
| 120 | + |
| 121 | + base: "" |
| 122 | + prefix: "" |
0 commit comments