mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 06:40:54 +03:00
add support for embedding templates and other static resources
This feature is disabled by default and can be enabled using the "bundle" build tag Fixes #823 Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -13,6 +13,7 @@ The following build tags are available:
|
||||
- `nosqlite`, disable SQLite data provider, default enabled
|
||||
- `noportable`, disable portable mode, default enabled
|
||||
- `nometrics`, disable Prometheus metrics, default enabled
|
||||
- `bundle`, embed static files and templates. Before building with this tag enabled you have to copy `openapi`, `static` and `templates` dirs to `internal/bundle` directory. Default disabled
|
||||
|
||||
If no build tag is specified the build will include the default features.
|
||||
|
||||
@@ -36,5 +37,5 @@ You should get a version that includes git commit, build date and available feat
|
||||
|
||||
```bash
|
||||
$ ./sftpgo -v
|
||||
SFTPGo 0.9.6-dev-b30614e-dirty-2020-06-19T11:04:56Z +metrics -gcs -s3 +bolt +mysql +pgsql -sqlite +portable
|
||||
SFTPGo 2.3.1-dev-c8158e1-2022-07-24T17:25:45Z +metrics +azblob +gcs +s3 +bolt +mysql +pgsql +sqlite +portable
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user