Revive http service for serving assets. Streamlined flagset.

This commit is contained in:
Benedikt Kulmann committed 2020-04-21 22:43:22 +02:00
1 parent 4b612965d9
commit 2f42fcb35a
9 files changed
+148 -194

No files matched your search

+6 -113
View File
@@ -1,5 +1,5 @@
// Code generated by fileb0x at "2020-04-21 21:09:33.242683 +0200 CEST m=+0.003837269" from config file "embed.yml" DO NOT EDIT.
// modification hash(f63be23a1d0af58f2fbee0850affb860.f981a36dcc1205c4270f67885fe56dea)
// Code generated by fileb0x at "2020-04-21 22:37:24.103861 +0200 CEST m=+0.004279436" from config file "embed.yml" DO NOT EDIT.
// modification hash(1b88c5605a5a76f1c853f14034afa80d.8058aec596c5fb73022d09bb97af796e)
package assets
@@ -35,17 +35,8 @@ type HTTPFS struct {
Prefix string
}
// FileAppJs is "app.js"
var FileAppJs = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x6c\x51\xc1\x8a\xc2\x30\x10\xbd\xe7\x2b\xde\x61\x21\x17\xb1\xbb\x47\x03\x1e\xf6\xb0\x0b\x1e\xf6\xe4\x51\x04\x43\x3b\xd5\x40\x9b\x09\xc9\x54\x04\xe9\xbf\x2f\x4d\x5b\xb5\xe0\x2d\xf3\x26\xf3\xde\x9b\x37\xae\x0d\x1c\x05\x7b\x12\x71\xfe\x9c\xbe\x43\x40\x1d\xb9\x85\x5e\x17\x25\xb7\x81\x3d\x79\x49\xc5\x4b\x7b\x7d\xed\x48\xab\x69\x2c\x09\x47\x7a\x0c\xe4\x4a\x2b\x55\xb2\x4f\x02\x1b\xc2\xce\xd7\x8c\x2d\xee\x0a\xf0\xb6\x25\x03\x3d\x13\xe9\x95\x02\x5c\x65\xa0\xd3\x02\x29\xd9\x1b\xe8\x33\xd9\x38\xd6\xe9\xd7\x35\xf4\x53\x39\xe1\x68\x50\xdb\x26\xd1\x00\xd3\x4d\xc8\x27\xc7\x3e\x19\x1c\x8e\x03\x52\xb2\xaf\xdd\xd9\x64\x29\xa0\x8b\x8d\x81\xbe\x88\x04\x53\x14\x0d\x97\xb6\xb9\x70\x12\xb3\xf9\xda\x7c\x6a\x05\xf4\xaa\x9f\x4d\x46\xee\x84\x12\xb6\x38\x28\x4c\xc3\x93\xd3\x85\x2f\x20\x58\xb9\x18\xe8\x62\x2a\x9f\xd9\xcc\x9a\x18\x16\x36\xaf\x41\x66\xb8\xcf\x7a\xc7\x59\xcf\xdb\xeb\x4e\xa8\x7d\xab\xb8\x5f\x2a\x0e\x59\xfc\x59\xa1\xe8\x6c\x63\xe6\x34\xd7\x03\x3a\xf6\xb3\xf5\xa7\xfa\x7b\xdb\xb3\xf1\x53\xf1\x71\x7f\x50\x54\x7d\x71\x5a\x9a\xa3\x5b\x3e\x67\x45\xb5\xed\x1a\xc9\x9c\xd3\xef\x81\x26\xdf\x75\x78\x8c\x69\xad\xf2\x39\xc7\x3d\x54\xaf\xfe\x03\x00\x00\xff\xff\x23\x2f\x62\x64\x42\x02\x00\x00")
// FileClientSettingsIndexJs is "client/settings/index.js"
var FileClientSettingsIndexJs = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\x57\x5f\x6f\xe3\x36\x0c\x7f\x0f\x90\xef\xc0\x01\xc5\x64\x27\x39\xfb\x9e\x3b\xf8\xba\xad\x2b\x86\x01\xdd\x16\x74\x2b\x86\xa1\x28\x7a\x6e\xcc\xa4\xba\xd8\x92\x23\x29\x6b\x83\x20\xdf\x7d\x90\xfc\x27\xb1\x2d\xa7\x5e\x9b\x1b\x96\xeb\xf2\x90\x38\x22\xf9\x23\x29\x91\xfc\xc9\xfe\x00\x50\xc6\x94\xa9\x77\x11\x95\xe1\x7d\x8c\x30\xf0\xfb\x3d\x9a\xa4\x5c\x28\x08\x9f\x28\x97\x30\x15\x3c\x01\x62\x9e\x49\x29\x5a\x14\xeb\x0b\xbd\x18\xa3\x82\x88\x27\x21\x65\x10\x00\x21\xfd\x1e\x3e\x19\xad\x09\x67\x52\xc1\x0c\xd5\x0f\x85\xd0\x71\x21\xf8\x00\xeb\x7e\x0f\x40\xa0\x5a\x0a\x96\xdb\xf5\x7b\x9b\x9a\x95\xdc\xb5\x3a\xc9\xb4\xb6\xc6\xa5\xb7\x93\x36\x7b\x81\x8b\x25\x4a\xa5\xad\x13\x54\x0f\x3c\x1a\xc1\x52\xc4\x23\xb8\xe7\xd1\x6a\x04\x8b\x25\x8a\xd5\x38\x14\x61\x82\x0a\x85\x1c\xc1\x94\x8b\x64\xa4\x4d\xa7\x74\xb6\x75\x93\x59\x42\x90\x3f\x78\x8a\x5f\xf2\x47\x14\xe7\xa1\x44\xc7\xd5\x0a\x3a\xf3\x39\xae\x24\x04\xf0\xeb\xfd\x27\x9c\x28\x4f\xff\x73\x6a\xf0\xa5\xaa\x59\xbf\x16\x31\x04\x3a\x18\xbd\x4a\xa7\xe0\x68\x13\x2f\x46\x36\x53\x0f\xf0\x01\xde\xbb\x99\x6f\xa8\x69\xc3\x10\xc8\x19\x81\x21\x2c\xa4\x27\x95\xa0\x6c\x46\xa7\x2b\xab\xa7\x8d\xfe\xf2\x7d\x8b\xc7\x61\xdd\x17\x9c\xe5\xa0\x99\x20\x09\x53\xfd\xa0\xf3\xd7\x3f\x43\x20\x81\x16\x22\x9b\xf0\x08\xaf\xaf\x7e\x3a\xe7\x49\xca\x19\x32\x55\xf7\x7b\x33\xc7\xd5\xad\xeb\x7a\x9f\x38\x65\x0e\xf9\x9a\xb8\x2e\x9c\x02\x21\x6e\x91\xa2\xde\xf5\x32\xaf\xfc\xe4\x4d\x49\xdd\x64\x3b\x7b\xeb\x14\x81\x16\x27\x94\x1f\x85\xc9\x07\x30\x96\x68\x70\x8a\x03\x09\x02\x20\x33\x54\xa4\x2b\x66\x13\xad\x9b\x5d\x65\xaf\x75\x8d\xb8\x55\x2c\x53\x77\xfe\x20\x78\xf1\xa7\xdf\x83\x01\x58\x3e\xfd\x1e\xbc\x1c\x54\xf7\xb0\x3f\x18\x18\x6c\xf3\x95\x37\xc3\x29\x5c\x52\xa9\x7e\x43\xa5\x28\x9b\xc9\xef\x97\x2c\x8a\x51\x1a\x85\xa5\x88\xad\xc2\xeb\xab\x4b\x23\xcf\x76\xc6\xaa\x72\xf7\xfb\x9f\xe3\x8b\xcc\x4b\xf8\x78\xd7\x06\x74\x77\xf5\xdd\x1f\x77\x05\xda\xb7\xa9\x2e\x1c\xc0\x27\x85\x4c\x52\xce\xe0\x9d\x09\xd3\xaf\xb5\xb0\x05\x06\x02\x98\x2e\xd9\x44\x51\xce\x9c\xb4\xac\x3e\x08\x60\xbd\xc9\x4b\x21\x33\x2d\xe7\xc3\x56\xc9\xcb\x47\x05\x9c\xd9\x16\x4f\xb7\x63\x2a\xeb\xec\x0c\x27\x3b\xeb\x1a\x4e\xb6\x58\xf4\x74\x1a\xaa\x07\x3d\xf6\xfc\x30\xa5\xfe\x5f\xef\xfd\xfb\x2c\x52\x52\xc8\x75\x39\x57\xfa\x7f\x5c\x8d\xbb\x90\xe9\xea\x2a\x17\x74\xad\x6f\x5d\xde\x90\x72\xab\xc8\x2d\x7c\x15\x04\xb0\x64\x11\x4e\x29\xc3\xa8\x3a\x2c\xc6\x2d\x26\xbb\xf1\x57\x24\xe5\xb8\xa8\x3a\xf4\x4e\xea\x73\xa5\x70\xb3\x3b\xe5\xf6\xe9\x7b\x53\x2e\x2e\xc2\xc9\x83\xd3\x3c\xae\x5f\xc2\x04\x4b\xbc\x66\xe0\x15\xbd\xdb\xda\xd6\xef\x57\xce\x20\x37\xee\x37\x65\x5a\x79\x7b\xe7\xf5\xef\x98\x99\x31\x2a\xaa\x63\x68\xce\xae\x1b\x25\x34\x09\x66\x4f\x91\xef\x56\xa9\x5b\x61\x3b\x4b\x95\x74\xc1\xd5\x2d\xb6\x07\x54\x67\xd5\x09\xa8\x16\x9b\xbd\x83\xf6\x15\xea\xa1\xba\xeb\xb9\xc6\xf9\xbf\xfe\x5f\x53\xff\x65\x56\xff\xe0\x7a\x52\xb9\x8e\xe5\xad\x51\xde\x0b\xfe\xcd\x0b\xc3\xa6\x8d\xbb\xce\x05\x86\x0a\xab\x15\xbd\x25\x2f\x9b\xb4\xce\x5e\x36\x1d\x0b\x7d\x59\xd5\x2c\xfc\xa5\xe7\x46\x0b\x75\xd9\x20\xde\x2a\x77\x69\x90\xd6\xb6\x35\x7b\x58\x6d\xcf\x4c\xbf\xa5\x33\x4b\xb8\xc0\x0a\x97\x57\xf1\x58\xf0\x84\x4a\xf4\x04\xea\xa2\x77\x18\x3e\xc2\x85\x10\x5c\x38\xe4\x67\x2a\x25\x65\x33\x53\x55\x54\x60\x04\x5b\xd7\xa7\x26\x18\xe2\xba\x5f\xe6\x50\x68\x27\xc5\x94\xcb\x83\xb1\xe2\xbe\xde\x79\x15\x2d\xb6\xf6\xee\x1e\x54\x93\x58\x37\xa8\x23\x65\xc6\x23\xaf\xc9\x2f\x93\xa8\x7e\x44\xd5\xc6\x52\x0d\x51\x9d\xa2\x1a\x0a\x16\x7e\x6a\xea\x74\x78\xb9\x2a\xd6\x75\xf6\x76\xce\x6a\xc0\x1e\x0f\x61\xf9\xeb\x32\xdd\x8d\xbf\x9e\xe3\x6a\xf3\x3a\x0a\xcb\xdd\xe8\x1f\x4f\x60\x1a\x87\x13\x74\xc8\x8e\x0f\x32\x82\x8f\x27\xeb\x96\x3b\xe5\xe6\xa3\xfb\xdc\x15\xf6\x73\x90\xd7\x16\x7f\x87\xc1\xec\x89\x98\x0d\x6a\xa4\x30\xc7\x55\x6b\xf0\x46\xf6\x59\xc2\xd6\xc8\x6f\x8f\x72\x0f\xf8\x1e\xda\x3a\x0d\xba\xd3\xad\xb5\x7d\x9e\xf7\xf3\xa2\xb7\x52\xdb\x04\xfc\xcf\x33\x6f\xcb\x7c\x39\xc4\x98\x38\x4c\x87\x1e\x79\xa3\x1c\xf7\x3d\xe0\xef\x00\x00\x00\xff\xff\x3d\x0a\xc9\xdc\x45\x19\x00\x00")
// FileComponentsSettingsAppVue is "components/SettingsApp.vue"
var FileComponentsSettingsAppVue = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x6c\x91\xcf\x8a\xb3\x30\x14\xc5\xf7\x79\x8a\x4b\x37\x2a\xd4\xc8\xb7\x6d\xad\xd0\x6f\x33\x0f\xd0\xe5\x30\x0b\x49\xae\x1a\x26\xff\x30\x37\x22\x14\xdf\x7d\xd0\xa6\xed\x4c\xe9\xea\xde\x8b\xe7\xfc\x3c\x87\xd4\x84\xc6\xeb\x96\xb0\x61\x00\xb5\x54\x13\x08\xdd\x86\x70\xda\xc5\xef\xb2\xd3\x38\x43\x9a\xa5\x70\x3a\x1a\xfb\x38\x8d\x92\x52\xe3\x7a\x9a\x76\xec\x95\x2d\x67\xdd\x8e\x3d\x96\xe4\xfc\x6e\x45\x01\xd4\xc3\xbf\xdb\x02\x70\x41\x22\x65\xfb\x00\x01\xc7\x49\x09\xe4\x9c\xdf\x24\xd5\x4d\x53\x57\x52\x4d\x0d\xab\xab\x67\x18\x56\x07\x31\x2a\x4f\x0d\x53\xc6\xbb\x91\xe0\x0a\xa6\xf5\x67\x41\xca\xd9\xb0\x5f\xf7\x0f\x24\xc2\x31\xc0\x02\xdd\xe8\x0c\x64\x53\xc4\x39\x3b\x32\x9c\x37\xb9\xc4\xae\x8d\x9a\xe0\xca\x00\x6c\x6b\xf0\x00\xd9\x3d\xc5\xd9\xfb\x6c\xcf\x00\x84\x33\x3e\x12\xca\xc3\x26\x02\xe0\x9c\x3f\xb1\xf9\x35\x65\x0f\xc9\xf5\x3f\x5a\xa9\x31\xfc\xe2\x54\x2f\x9f\xb2\xcd\xb1\x14\x0c\x60\x59\xf9\x06\x69\x70\x32\xfc\xc5\xa7\x06\xf9\x83\x92\xed\xe1\x33\xfd\x2a\xeb\x90\xc4\x70\x79\x47\xfd\x7a\x52\x5d\xb4\x84\x12\xf2\x22\x71\x69\x50\x81\xbf\x73\xe6\x05\xa7\x01\x6d\x9e\x17\x70\x6a\xe0\xde\x47\x38\x1b\x9c\x46\xae\x5d\x9f\x6f\xd6\x97\x16\xc5\x31\xd5\x58\xe7\xc2\x16\x56\x57\xf7\x97\xf8\x09\x00\x00\xff\xff\x3b\x62\x86\x7e\x2c\x02\x00\x00")
// FileStoreIndexJs is "store/index.js"
var FileStoreIndexJs = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x6c\x53\xc1\x6a\xe3\x30\x10\xbd\xeb\x2b\xde\x61\x41\x2e\x18\xb7\xec\xd1\xe0\x85\x6d\x9b\x96\x42\x36\x3d\x24\x7b\x5a\x96\xa0\xb5\x27\x8e\x40\x96\x82\x35\xa6\x2d\xc1\xff\xbe\xd8\xb2\x95\xd6\xe4\x24\x31\xf3\xde\x9b\xa7\x99\x91\x6e\x4e\xae\x65\x9c\xb1\xd6\x9e\xb7\xc4\xac\x6d\xed\xef\x3b\x5b\x19\xf2\xe8\x71\x68\x5d\x03\x99\x65\xb7\xa5\xd1\x64\xf9\xd6\x4f\x08\x29\x44\xe9\xac\x67\x78\x56\x4c\x28\x70\x16\x40\xe9\xec\x41\xd7\x39\x6c\x67\x4c\x2a\x00\xff\x55\x2e\xc7\x9f\xbf\xa2\x9f\x89\x35\x31\x53\xeb\x17\xd4\x49\xee\x47\xb8\x64\x21\x7c\x55\x6b\x81\x5c\xe4\x2f\x75\x9a\x8e\x15\x6b\x67\xe7\x4a\xdb\xd5\x6e\xbf\x5d\xed\x76\x2f\x9b\xe7\xed\xfe\xfe\xf7\xe6\x71\xbd\xda\x22\x19\x45\x52\x9c\xd4\x87\x71\xaa\xba\x19\x91\xb8\x2e\x8d\x62\x86\x09\xa0\x4f\x85\x00\xd6\xaf\x3f\x1f\xf7\x0f\xaf\x9b\xa7\x97\xe7\x28\x15\xac\x7f\x55\x0a\x31\x14\x53\x72\xe0\x5f\x8c\xaa\xf2\xb3\xcd\x41\xff\x21\xc0\x93\x33\x4a\xd7\x34\x9a\xd1\x2f\x65\x43\x3c\x91\x9f\x0c\xc8\x88\x89\xf6\x94\xff\xb0\x25\x0e\xc4\xe5\x71\x39\xe1\xa8\x9d\xa2\xd2\xfe\xa4\xb8\x3c\xa6\x71\x34\xfd\xa5\xcc\x60\xb0\x25\x7f\x72\xd6\x0f\xd3\x56\x6f\x4a\xf3\xb5\x95\x49\x02\x01\xf8\x56\xb9\x46\x69\x9b\xcf\x62\xd3\xdb\xb3\xae\x35\x23\xa2\xbf\x19\x0f\x7d\x40\x32\xeb\x66\x43\x93\x3a\x8f\xa2\x28\xf0\xfd\xee\x6e\x2e\x1e\xca\x3b\x43\x99\x71\xf5\x05\x5c\x29\x56\x37\x11\x10\xda\x70\x6d\xb6\x32\xc5\x15\x4e\x0f\x32\x9e\x62\x85\xf9\xed\x89\xf4\x47\xf7\xf6\x8b\xbc\x57\x35\xc9\x34\xe6\x01\xd6\x6c\x28\x87\x7c\x52\xda\x50\x05\x76\xa1\x9f\x71\x2f\xf1\x2f\x34\x20\x93\x69\xe4\x54\xe4\xcb\x1c\x8b\xe7\xed\xe8\x9d\x2f\x90\x10\xcb\x21\x2b\x65\x6b\x6a\xe5\x94\xe8\x53\x9c\xd1\x3a\xc7\x39\xb8\xed\x68\xee\x56\x3f\x6f\x0c\xbd\x8f\xbf\xb6\xa2\x83\xea\x0c\x8f\x36\xad\x6a\xc8\x9f\x54\x49\x55\xe0\x8c\x9f\x66\x5c\x45\x81\x79\x08\xc3\x75\x5a\xb3\xe1\x1a\xbf\x86\xe8\xc5\xff\x00\x00\x00\xff\xff\x7f\xe5\xdf\x9e\x08\x04\x00\x00")
// FileSettingsJs is "settings.js"
var FileSettingsJs = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xbc\x7c\x6b\x77\xdb\x38\xb2\xe0\xf7\xfd\x15\x12\x6e\x87\x07\x68\xc1\xb4\xec\x3c\x26\xa1\x82\xd6\x3a\x8e\xd3\x93\x99\xb4\xd3\x63\x3b\x33\x3d\xa3\x68\x7c\x69\xb2\x24\xa1\x4d\x01\x6a\x10\xf4\xa3\x25\xfe\xf7\x3d\x00\xf8\x16\x9d\x9e\xdd\x73\xcf\x7e\xb0\x05\x14\x0a\xaf\x42\xa1\x5e\x00\x18\xc3\x82\x0b\xc0\x33\x74\x97\xc1\x03\x9a\x53\xbc\xc8\x44\xa4\xb9\x14\x18\xc8\x16\x65\x29\x0c\x52\xad\x78\xa4\xd1\x24\x92\x22\xd5\x03\xcd\xb6\x22\x5c\x43\x80\x2e\x41\x6b\x2e\x96\xe9\xc9\x66\x83\x68\x24\xd7\x9b\x4c\x43\x1c\x6c\x7d\xdf\x07\x7f\x1d\x6e\x7e\x04\xad\x41\xa5\x78\x9b\x16\x78\xef\x32\x11\x27\x90\xd6\x15\x0f\x3b\x25\x28\x27\x39\x5d\x83\x5e\xc9\x38\xad\xdb\x39\xb1\x83\x49\x71\x55\x0d\xd1\x19\x5a\x80\x8e\x56\x97\x9d\xea\x73\x53\x5d\x66\x42\x43\x8c\xc9\x56\xaf\x78\xea\xf7\xe1\x61\xe2\xeb\x15\x08\x8c\x09\xfb\x61\x6b\xe6\x24\x13\xf0\x13\xb9\xc4\xb6\x46\x67\x4c\x24\x27\x79\x3e\xb9\x0b\xd5\x40\xb0\x8a\x30\x64\x6b\x00\xc0\x6c\x85\xef\x22\x05\xa1\x86\xb3\x04\xd6\x20\xf4\xc4\xc2\xae\x53\x48\x16\xfe\x75\x34\x51\xa0\x33\x25\x06\x0e\xb8\xc6\x63\x92\x4f\x84\x7f\x7d\xcf\xf5\xea\x52\x2b\xbe\xd9\x40\xcc\x86\xe3\x82\xb0\xaa\xee\x00\xa8\xa6\x82\x2a\x2a\x29\xa7\x21\x4d\x69\x44\x33\xb2\x45\x37\x52\x26\x10\x0a\x34\x64\xfa\x71\x03\x72\x31\x08\x3d\x0f\x47\x2c\xa5\x29\x0b\x69\xc8\x86\x47\xa4\x68\x69\xc1\x50\xd9\x14\x62\x25\xb2\x98\x0a\x5f\x6e\x2c\x2d\x03\x31\x49\x40\x0f\x92\x09\x5f\x60\xf0\x3c\xf0\x15\x88\x18\x94\xe7\xe1\x45\x91\x64\x25\x8c\x2e\xfc\x54\x87\x9a\x47\x17\x36\xfb\x41\xa4\x0c\xba\x10\x6a\xa6\x2a\xd7\x1b\x9e\xd8\xe9\x50\x69\x1b\x2a\x47\x10\x26\x6c\x38\x26\x84\xba\xe6\xaf\xd3\x48\x6e\xe0\x63\xcc\x14\xa1\x7c\x8a\x13\xd6\xe4\x36\x0c\x0c\x76\x3b\x47\xd5\x3b\x21\x63\xf0\xbc\x46\xc6\x4f\x53\x75\x2a\x85\x86\x07\x5d\x20\x6d\x42\x05\x42\x17\x48\x2e\xd3\xae\xd8\x82\x35\xea\x93\xdd\x0e\x65\xc2\x71\x7e\x5c\x93\xe8\xfa\xfa\xef\x5f\xce\xae\x2f\x2f\x2f\xae\x4f\x3f\x9f\x5f\x9d\xfd\x72\x75\x7d\xbd\xdb\x61\x60\x3d\x70\x42\x4d\xbf\x7e\x14\x26\x89\xe5\x1b\x1a\x61\x20\x84\x5a\x6a\x5e\x2b\x58\xf2\x54\x83\x82\xf8\x54\xae\x37\x52\x80\xd0\xe9\x93\x05\x7e\x18\xc7\x98\x93\xdc\x50\x31\x4d\xd5\x45\x81\xc2\x12\x12\x68\xcf\xc3\x09\x0b\xa7\x4d\x1a\x35\xfb\xcc\x0c\xa3\x58\x02\x29\x29\xb5\xff\x5d\xb1\xbc\x7e\xba\x0a\x63\x79\x7f\x21\xa5\x26\x24\x0f\x9e\xaa\x9d\x9a\x11\xe7\x84\x26\x84\x2f\x5a\xeb\x45\xb6\x8e\x8d\x80\x95\xec\x30\xa9\xf8\xa2\x6a\x4c\x53\x41\xb6\x05\x7b\x27\xae\x55\x41\x28\x58\x78\x9e\x43\x92\x42\xa3\x95\x1b\x58\x48\x05\xa7\x76\xa3\x4c\xda\x59\x06\xd3\xd9\xdc\x8f\xa4\x88\x42\x8d\x81\x26\x24\x98\x25\xf3\xbc\x68\x58\xe4\x78\xeb\x3a\x0e\x04\xed\x70\x5d\x30\xfb\x4f\xf6\x23\xd5\xac\xb5\x23\x77\x3b\xa8\x36\x25\x46\x31\xbf\x43\x74\xeb\x1a\x3e\x4d\xc2\x34\x0d\x50\x76\x7b\xb0\x48\xe0\x61\x50\xfc\x1e\x44\x32\xc9\xd6\xa2\xca\xae\x79\x1c\x27\x60\xb2\xeb\x50\x2d\xb9\x38\x78\x48\x42\xb5\x84\x03\x2d\x37\x28\xa7\x33\x8d\xd1\xea\x08\xd1\x99\xeb\xf3\x0e\xa3\xaf\x62\x30\x18\x0c\x4a\x09\x34\x48\x41\xdd\xf1\x08\x7c\xdf\x37\x05\x88\xcc\xc9\x9c\xe4\xf3\x9c\xde\x49\x1e\x0f\xc6\x54\x97\x89\xe1\xd1\x7e\xaa\xf5\x43\xac\x4c\x92\x2d\x91\x51\xad\x47\x83\x30\x0b\xa9\xb0\x93\x5e\x02\xee\x07\x27\x4a\x85\x8f\x38\x54\xcb\x6c\x6d\x59\x2f\x01\xb1\xd4\x2b\x42\x15\x1b\x4f\xd4\x5b\x51\xe4\x27\x6a\x34\x22\x62\xa6\xe6\xac\xc2\x9c\xa9\x79\x49\x36\xf0\xc3\xcd\x26\x79\x2c\x16\x9a\x72\xf6\xf9\xe6\x57\x88\xb4\xbf\x51\x52\x4b\xb3\x91\x7c\x2d\x8d\x70\x13\xcb\x49\x39\x8e\x41\x68\x78\xcf\xd5\x47\x33\x69\xf1\xdd\x58\xe6\x88\x31\xc6\x1d\xfb\x00\xc9\xab\x0a\x69\x5d\x61\xe0\x26\xcc\x18\x83\xba\x3c\x6a\x94\x8b\x2c\x49\x86\x8c\x81\xe7\x21\xd7\x74\xbd\xa1\x1b\x35\xb2\x9e\x21\x7c\x28\x0a\x9f\x1a\xc5\xc2\x51\x95\x2f\xb0\xeb\x03\xcc\x4e\x29\x3b\xa9\xa4\x30\x78\x1e\x06\x36\x83\x39\xa1\x66\x9e\xa4\x26\xf9\x98\x1a\x41\x5a\x10\x55\xbc\x55\x13\x31\x1a\x91\x62\x0b\x9a\x16\x29\xcc\xc4\x9c\x0a\x0a\x64\x62\x36\xcc\xa0\xac\x29\x07\x5c\x0c\x80\xec\x11\x76\x15\xa6\x9f\xef\xc5\xcf\x4a\x6e\x40\xe9\xc7\x62\xbc\x54\x92\x4a\x12\x15\x8d\xca\x39\x95\x14\x48\x6e\xda\x4a\xd8\x96\xa7\x96\xd6\x41\x48\x8b\xd4\xbb\x6c\xb1\x00\xd5\x12\x0c\x7d\x8b\xe3\xd0\x3a\xc4\xa1\x3c\x7d\xb2\x7a\x63\x29\x86\x66\x05\x3d\xaf\x04\xf8\x56\x16\xa8\x2c\xd2\x52\xb9\xc2\x26\x84\x78\x5e\x8f\xc2\x6a\xa1\xf8\x65\xb7\x46\x8e\xf6\xc1\x8b\xb1\x7d\x90\x6a\xfd\x3e\xd4\x61\xdf\xe4\x6a\x89\x5f\xad\x5d\x89\xee\x79\x30\xe0\x22\xd5\xa1\x88\x9a\xe0\xbc\x4d\xb1\xbf\x73\xb8\xff\x0f\x1b\x6e\xd4\xf2\xbc\x46\xc6\xe7\xa9\x69\x65\xba\x0f\xc2\x40\x02\xab\x3e\x6e\xaa\x79\xba\x54\x73\x60\x8d\x6a\x66\x6c\x6e\x9f\xf5\x0d\x29\xb5\x25\xcd\x9d\x40\x79\x7a\x9e\xad\x6f\xfa\xd7\x5d\xd8\x92\x0e\xba\xe3\xbf\x20\xa2\x3c\xfd\x52\xce\x30\x48\x29\x4f\xdf\x87\x1a\xbe\xc5\x3d\xa6\x7c\x9f\x6d\x3e\xf0\xe4\x9b\xb5\x4c\x79\x0f\xb3\x25\xf2\xe6\x5b\xb5\x4c\x79\x4f\x5f\x45\x85\x20\x73\x54\x82\x70\xdd\xc7\xaf\x91\x65\xd2\x0c\x83\xbf\xe1\x1b\x57\xf3\xcb\xc5\xa7\x4b\x08\x55\xb4\xfa\x39\x54\xe1\x3a\xfd\x0f\x97\xbb\x53\xab\xc3\x4e\x9d\x52\xb7\x72\xa1\x88\x43\x15\xbf\x53\xf2\x3e\x05\x75\x26\xee\x82\x86\xd4\x76\x1d\xe1\x3e\x1b\x45\x84\x77\x7c\x19\xLine truncated
func init() {
err := CTX.Err()
@@ -53,32 +44,12 @@ func init() {
panic(err)
}
err = FS.Mkdir(CTX, "components/", 0777)
if err != nil && err != os.ErrExist {
panic(err)
}
err = FS.Mkdir(CTX, "client/", 0777)
if err != nil && err != os.ErrExist {
panic(err)
}
err = FS.Mkdir(CTX, "client/settings/", 0777)
if err != nil && err != os.ErrExist {
panic(err)
}
err = FS.Mkdir(CTX, "store/", 0777)
if err != nil && err != os.ErrExist {
panic(err)
}
var f webdav.File
var rb *bytes.Reader
var r *gzip.Reader
rb = bytes.NewReader(FileAppJs)
rb = bytes.NewReader(FileSettingsJs)
r, err = gzip.NewReader(rb)
if err != nil {
panic(err)
@@ -89,85 +60,7 @@ func init() {
panic(err)
}
f, err = FS.OpenFile(CTX, "app.js", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0777)
if err != nil {
panic(err)
}
_, err = io.Copy(f, r)
if err != nil {
panic(err)
}
err = f.Close()
if err != nil {
panic(err)
}
rb = bytes.NewReader(FileClientSettingsIndexJs)
r, err = gzip.NewReader(rb)
if err != nil {
panic(err)
}
err = r.Close()
if err != nil {
panic(err)
}
f, err = FS.OpenFile(CTX, "client/settings/index.js", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0777)
if err != nil {
panic(err)
}
_, err = io.Copy(f, r)
if err != nil {
panic(err)
}
err = f.Close()
if err != nil {
panic(err)
}
rb = bytes.NewReader(FileComponentsSettingsAppVue)
r, err = gzip.NewReader(rb)
if err != nil {
panic(err)
}
err = r.Close()
if err != nil {
panic(err)
}
f, err = FS.OpenFile(CTX, "components/SettingsApp.vue", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0777)
if err != nil {
panic(err)
}
_, err = io.Copy(f, r)
if err != nil {
panic(err)
}
err = f.Close()
if err != nil {
panic(err)
}
rb = bytes.NewReader(FileStoreIndexJs)
r, err = gzip.NewReader(rb)
if err != nil {
panic(err)
}
err = r.Close()
if err != nil {
panic(err)
}
f, err = FS.OpenFile(CTX, "store/index.js", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0777)
f, err = FS.OpenFile(CTX, "settings.js", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0777)
if err != nil {
panic(err)
}
+2 -2
View File
@@ -10,8 +10,8 @@ compression:
custom:
- files:
- "../../ui/"
base: "../../ui/"
- "../../assets/"
base: "../../assets/"
prefix: ""
...
+22 -5
View File
@@ -2,7 +2,6 @@ package command
import (
"context"
"github.com/owncloud/ocis-settings/pkg/server/grpc"
"os"
"os/signal"
"strings"
@@ -18,6 +17,8 @@ import (
"github.com/owncloud/ocis-settings/pkg/config"
"github.com/owncloud/ocis-settings/pkg/flagset"
"github.com/owncloud/ocis-settings/pkg/server/debug"
"github.com/owncloud/ocis-settings/pkg/server/grpc"
"github.com/owncloud/ocis-settings/pkg/server/http"
"go.opencensus.io/stats/view"
"go.opencensus.io/trace"
)
@@ -39,7 +40,6 @@ func Server(cfg *config.Config) *cli.Command {
},
Action: func(c *cli.Context) error {
logger := NewLogger(cfg)
httpNamespace := c.String("http-namespace")
if cfg.Tracing.Enabled {
switch t := cfg.Tracing.Type; t {
@@ -132,14 +132,31 @@ func Server(cfg *config.Config) *cli.Command {
defer cancel()
{
server := http.Server(
http.Name("settings"),
http.Logger(logger),
http.Context(ctx),
http.Config(cfg),
)
gr.Add(func() error {
return server.Run()
}, func(_ error) {
logger.Info().
Str("server", "http").
Msg("Shutting down server")
cancel()
})
}
{
server := grpc.Server(
grpc.Name("ocis-settings"),
grpc.Address(":9190"),
grpc.Name("settings"),
grpc.Logger(logger),
grpc.Context(ctx),
grpc.Config(cfg),
grpc.Namespace(httpNamespace),
)
gr.Add(func() error {
+7
View File
@@ -22,6 +22,12 @@ type HTTP struct {
Root string
}
// GRPC defines the available grpc configuration.
type GRPC struct {
Addr string
Namespace string
}
// Tracing defines the available tracing configuration.
type Tracing struct {
Enabled bool
@@ -48,6 +54,7 @@ type Config struct {
Log Log
Debug Debug
HTTP HTTP
GRPC GRPC
Tracing Tracing
Asset Asset
}
+14
View File
@@ -136,6 +136,20 @@ func ServerWithConfig(cfg *config.Config) []cli.Flag {
EnvVars: []string{"SETTINGS_HTTP_ROOT"},
Destination: &cfg.HTTP.Root,
},
&cli.StringFlag{
Name: "grpc-addr",
Value: "0.0.0.0:9191",
Usage: "Address to bind grpc server",
EnvVars: []string{"HELLO_GRPC_ADDR"},
Destination: &cfg.GRPC.Addr,
},
&cli.StringFlag{
Name: "grpc-namespace",
Value: "com.owncloud.api",
Usage: "Set the base namespace for the grpc namespace",
EnvVars: []string{"SETTINGS_GRPC_NAMESPACE"},
Destination: &cfg.GRPC.Namespace,
},
&cli.StringFlag{
Name: "mount-path",
Usage: "Mount path for the storage",
+14 -12
View File
@@ -3,6 +3,8 @@ package grpc
import (
"context"
"github.com/micro/cli/v2"
"github.com/owncloud/ocis-settings/pkg/metrics"
"github.com/owncloud/ocis-settings/pkg/config"
"github.com/owncloud/ocis-pkg/v2/log"
)
@@ -13,11 +15,11 @@ type Option func(o *Options)
// Options defines the available options for this package.
type Options struct {
Name string
Address string
Logger log.Logger
Context context.Context
Config *config.Config
Namespace string
Metrics *metrics.Metrics
Flags []cli.Flag
}
// newOptions initializes the available default options.
@@ -45,13 +47,6 @@ func Name(val string) Option {
}
}
// Address provides an address for the service.
func Address(val string) Option {
return func(o *Options) {
o.Address = val
}
}
// Context provides a function to set the context option.
func Context(val context.Context) Option {
return func(o *Options) {
@@ -66,9 +61,16 @@ func Config(val *config.Config) Option {
}
}
// Namespace provides a function to set the namespace option.
func Namespace(val string) Option {
// Metrics provides a function to set the metrics option.
func Metrics(val *metrics.Metrics) Option {
return func(o *Options) {
o.Namespace = val
o.Metrics = val
}
}
// Flags provides a function to set the flags option.
func Flags(val []cli.Flag) Option {
return func(o *Options) {
o.Flags = append(o.Flags, val...)
}
}
+9 -6
View File
@@ -4,6 +4,7 @@ import (
"github.com/owncloud/ocis-settings/pkg/proto/v0"
svc "github.com/owncloud/ocis-settings/pkg/service/v0"
"github.com/owncloud/ocis-pkg/v2/service/grpc"
"github.com/owncloud/ocis-settings/pkg/version"
)
// NewService initializes a new go-micro service ready to run
@@ -11,15 +12,17 @@ func Server(opts ...Option) grpc.Service {
options := newOptions(opts...)
service := grpc.NewService(
grpc.Name(options.Name),
grpc.Context(options.Context),
grpc.Address(options.Address),
grpc.Namespace(options.Namespace),
grpc.Logger(options.Logger),
grpc.Name(options.Name),
grpc.Version(version.String),
grpc.Address(options.Config.GRPC.Addr),
grpc.Namespace(options.Config.GRPC.Namespace),
grpc.Context(options.Context),
grpc.Flags(options.Flags...),
)
hdlr := svc.NewService(options.Config)
if err := proto.RegisterBundleServiceHandler(service.Server(), hdlr); err != nil {
handle := svc.NewService(options.Config)
if err := proto.RegisterBundleServiceHandler(service.Server(), handle); err != nil {
options.Logger.Fatal().Err(err).Msg("could not register service handler")
}
+8 -8
View File
@@ -14,7 +14,7 @@ type Option func(o *Options)
// Options defines the available options for this package.
type Options struct {
Namespace string
Name string
Logger log.Logger
Context context.Context
Config *config.Config
@@ -40,6 +40,13 @@ func Logger(val log.Logger) Option {
}
}
// Name provides a name for the service.
func Name(val string) Option {
return func(o *Options) {
o.Name = val
}
}
// Context provides a function to set the context option.
func Context(val context.Context) Option {
return func(o *Options) {
@@ -67,10 +74,3 @@ func Flags(val []cli.Flag) Option {
o.Flags = append(o.Flags, val...)
}
}
// Namespace provides a function to set the Namespace option.
func Namespace(val string) Option {
return func(o *Options) {
o.Namespace = val
}
}
+66 -48
View File
@@ -1,56 +1,74 @@
package http
// import (
// svc "github.com/owncloud/ocis-settings/pkg/service/v0"
// "github.com/owncloud/ocis-settings/pkg/version"
// "github.com/owncloud/ocis-pkg/v2/middleware"
// "github.com/owncloud/ocis-pkg/v2/service/http"
// )
import (
"github.com/go-chi/chi"
"github.com/owncloud/ocis-pkg/v2/middleware"
"github.com/owncloud/ocis-pkg/v2/service/http"
"github.com/owncloud/ocis-settings/pkg/assets"
"github.com/owncloud/ocis-settings/pkg/proto/v0"
svc "github.com/owncloud/ocis-settings/pkg/service/v0"
"github.com/owncloud/ocis-settings/pkg/version"
)
// // Server initializes the http service and server.
// func Server(opts ...Option) (http.Service, error) {
// options := newOptions(opts...)
// Server initializes the http service and server.
func Server(opts ...Option) http.Service {
options := newOptions(opts...)
// service := http.NewService(
// http.Logger(options.Logger),
// http.Name("settings"),
// http.Version(version.String),
// http.Namespace(options.Config.HTTP.Namespace),
// http.Address(options.Config.HTTP.Addr),
// http.Context(options.Context),
// http.Flags(options.Flags...),
// )
service := http.NewService(
http.Logger(options.Logger),
http.Name(options.Name),
http.Version(version.String),
http.Address(options.Config.HTTP.Addr),
http.Namespace(options.Config.HTTP.Namespace),
http.Context(options.Context),
http.Flags(options.Flags...),
)
// handle := svc.NewService(
// svc.Logger(options.Logger),
// svc.Config(options.Config),
// svc.Middleware(
// middleware.RealIP,
// middleware.RequestID,
// middleware.Cache,
// middleware.Cors,
// middleware.Secure,
// middleware.Version(
// "settings",
// version.String,
// ),
// middleware.Logger(
// options.Logger,
// ),
// ),
// )
handle := svc.NewService(options.Config)
// {
// handle = svc.NewInstrument(handle, options.Metrics)
// handle = svc.NewLogging(handle, options.Logger)
// handle = svc.NewTracing(handle)
// }
{
handle = svc.NewInstrument(handle, options.Metrics)
handle = svc.NewLogging(handle, options.Logger)
handle = svc.NewTracing(handle)
}
// service.Handle(
// "/",
// handle,
// )
mux := chi.NewMux()
// service.Init()
// return service, nil
// }
mux.Use(middleware.RealIP)
mux.Use(middleware.RequestID)
mux.Use(middleware.Cache)
mux.Use(middleware.Cors)
mux.Use(middleware.Secure)
mux.Use(middleware.Version(
"settings",
version.String,
))
mux.Use(middleware.Logger(
options.Logger,
))
mux.Use(middleware.Static(
options.Config.HTTP.Root,
assets.New(
assets.Logger(options.Logger),
assets.Config(options.Config),
),
))
mux.Route(options.Config.HTTP.Root, func(r chi.Router) {
proto.RegisterBundleServiceWeb(
r,
handle,
)
})
service.Handle(
"/",
mux,
)
service.Init()
return service
}