1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-19 13:19:43 +02:00

3.4.0 build prep

This commit is contained in:
HarveyKandola 2019-10-26 16:15:56 +01:00
parent 39f457e90e
commit 017b19141c
5 changed files with 1135 additions and 1110 deletions

View file

@ -13,9 +13,9 @@ All you need to provide is PostgreSQL, Microsoft SQL Server or any MySQL variant
## Latest Release ## Latest Release
[Community Edition: v3.3.2](https://github.com/documize/community/releases) [Community Edition: v3.4.0](https://github.com/documize/community/releases)
[Enterprise Edition: v3.3.2](https://www.documize.com/downloads) [Enterprise Edition: v3.4.0](https://www.documize.com/downloads)
> *We provide frequent product updates for both cloud and self-hosted customers.* > *We provide frequent product updates for both cloud and self-hosted customers.*
> >
@ -50,7 +50,7 @@ For all database types, Full-Text Search support (FTS) is mandatory.
## Technology Stack ## Technology Stack
- Go (v1.13.1) - Go (v1.13.3)
- Ember JS (v3.12.0) - Ember JS (v3.12.0)
## Authentication Options ## Authentication Options

View file

@ -29,7 +29,7 @@ func InitRuntime(r *env.Runtime, s *store.Store) bool {
// TODO: remove this line when Go1.13 is released. // TODO: remove this line when Go1.13 is released.
os.Setenv("GODEBUG", os.Getenv("GODEBUG")+",tls13=1") os.Setenv("GODEBUG", os.Getenv("GODEBUG")+",tls13=1")
// We need SALT to hash auth JWT tokens // We need SALT to hash auth JWT tokens.
if r.Flags.Salt == "" { if r.Flags.Salt == "" {
r.Flags.Salt = secrets.RandSalt() r.Flags.Salt = secrets.RandSalt()
@ -37,10 +37,10 @@ func InitRuntime(r *env.Runtime, s *store.Store) bool {
return false return false
} }
r.Log.Info("please set DOCUMIZESALT or use -salt with this value: " + r.Flags.Salt) r.Log.Info("please set DOCUMIZESALT environment variable or use -salt switch with this value: " + r.Flags.Salt)
} }
// We can use either or both HTTP and HTTPS ports // We can use either or both HTTP and HTTPS ports.
if r.Flags.SSLCertFile == "" && r.Flags.SSLKeyFile == "" { if r.Flags.SSLCertFile == "" && r.Flags.SSLKeyFile == "" {
if r.Flags.HTTPPort == "" { if r.Flags.HTTPPort == "" {
r.Flags.HTTPPort = "80" r.Flags.HTTPPort = "80"
@ -65,12 +65,12 @@ func InitRuntime(r *env.Runtime, s *store.Store) bool {
storage.SetSQLServerProvider(r, s) storage.SetSQLServerProvider(r, s)
default: default:
r.Log.Infof("Unsupported database type: %s", r.Flags.DBType) r.Log.Infof("Unsupported database type: %s", r.Flags.DBType)
r.Log.Info("Documize supports the following database types: mysql | mariadb | percona | postgresql") r.Log.Info("Documize supports the following database types: mysql mariadb percona postgresql sqlserver")
os.Exit(1) os.Exit(1)
return false return false
} }
// Open connection to database // Open connection to database.
db, err := sqlx.Open(r.StoreProvider.DriverName(), r.StoreProvider.MakeConnectionString()) db, err := sqlx.Open(r.StoreProvider.DriverName(), r.StoreProvider.MakeConnectionString())
if err != nil { if err != nil {
r.Log.Error("Unable to open database", err) r.Log.Error("Unable to open database", err)
@ -78,10 +78,10 @@ func InitRuntime(r *env.Runtime, s *store.Store) bool {
return false return false
} }
// Set the database handle // Set the database handle.
r.Db = db r.Db = db
// Set connection defaults // Set connection defaults.
r.Db.SetMaxIdleConns(30) r.Db.SetMaxIdleConns(30)
r.Db.SetMaxOpenConns(100) r.Db.SetMaxOpenConns(100)
r.Db.SetConnMaxLifetime(time.Second * 14400) r.Db.SetConnMaxLifetime(time.Second * 14400)

View file

@ -40,9 +40,9 @@ func main() {
// Specify the product edition. // Specify the product edition.
rt.Product = domain.Product{} rt.Product = domain.Product{}
rt.Product.Major = "3" rt.Product.Major = "3"
rt.Product.Minor = "3" rt.Product.Minor = "4"
rt.Product.Patch = "2" rt.Product.Patch = "0"
rt.Product.Revision = "191017131056" rt.Product.Revision = "191021105505"
rt.Product.Version = fmt.Sprintf("%s.%s.%s", rt.Product.Major, rt.Product.Minor, rt.Product.Patch) rt.Product.Version = fmt.Sprintf("%s.%s.%s", rt.Product.Major, rt.Product.Minor, rt.Product.Patch)
rt.Product.Edition = domain.CommunityEdition rt.Product.Edition = domain.CommunityEdition
rt.Product.Title = fmt.Sprintf("%s Edition", rt.Product.Edition) rt.Product.Title = fmt.Sprintf("%s Edition", rt.Product.Edition)

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
{ {
"name": "documize", "name": "documize",
"version": "3.3.2", "version": "3.4.0",
"description": "Documize is the Integrated Document Environment (IDE)", "description": "Documize is the Integrated Document Environment (IDE)",
"repository": "", "repository": "",
"license": "AGPL", "license": "AGPL",