Useful if you want to host your own blueprintUE website for your company.
Useful if you want to host your own blueprintUE website for your company.
| Registry | Image |
|---|---|
| Docker Hub | blueprintue/blueprintue-self-hosted-edition |
| GitHub Container Registry | ghcr.io/blueprintue/blueprintue-self-hosted-edition |
Read docker-examples about documentation and docker-compose file example.
Download zip file from last release or run a composer install to have vendor folder.
app, storage, vendor and paste outside of the public folder of your serverwww and paste inside the public folder of your serverdump-with-anonymous-user.sql or dump-without-anonymous-user.sql and paste file in your database.env.template and paste file outside of the public folder of your server.env.template file with what you need (database and email).env.template to .env (see Configuration explanations)The public folder means what your http server can show you, usually it is called is www or public_html
Don't forget to add PHP permissions to read/write in folders storage, www/medias and where you have .env file for cache.
You can disable cache for .env by removing line $env->enableCache(); in www/index.php.
blueprintUE self-hosted edition is like blueprintUE but without
Because GDPR you will need to:
| Parameter | Mandatory | Type | Default value | Specific values | Description |
|---|---|---|---|---|---|
| DATABASE_DRIVER | YES | string | mysql | pgsqlite | sqlite | database engine used | |
| DATABASE_HOST | YES | string | host | ||
| DATABASE_USER | YES | string | user | ||
| DATABASE_PASSWORD | YES | string | password | ||
| DATABASE_NAME | YES | string | database name | ||
| DATABASE_PERSISTENT_CONNECTION | NO | bool | false | use persistent connection for database, only for e2e tests |
| Parameter | Mandatory | Type | Default value | Specific values | Description |
|---|---|---|---|---|---|
| SESSION_DRIVER | NO | string | default | default | database | session driver used |
| SESSION_ENCRYPT_KEY | NO | string | if empty there is no encryption | ||
| SESSION_GC_MAXLIFETIME | NO | int | 3600 * 24 | session's lifetime before deletion by garbage collector | |
| SESSION_LIFETIME | NO | int | 0 | cookie's lifetime for session | |
| SESSION_PATH | NO | string | / | cookie's path for session | |
| SESSION_HTTPS | NO | bool | true | session cookie will be only accessible on https | |
| SESSION_SAMESITE | NO | string | Strict | None | Lax | Strict | security policies on how cookies are shared, Lax is mandatory for Twitter OAuth |
| SESSION_REMEMBER_NAME | NO | string | remember_token | cookie's name for remember login | |
| SESSION_REMEMBER_LIFETIME | NO | int | 3600 * 24 * 30 | cookie's lifetime for remember login | |
| SESSION_REMEMBER_PATH | NO | string | / | cookie's path for remember login | |
| SESSION_REMEMBER_HTTPS | NO | bool | true | remember cookie will be only accessible on https | |
| SESSION_REMEMBER_SAMESITE | NO | string | Strict | None | Lax | Strict | security policies on how cookies are shared, Lax is mandatory for Twitter OAuth |
| Parameter | Mandatory | Type | Default value | Description |
|---|---|---|---|---|
| HOST | YES | string | hostname (e.g. blueprintue-self-hosted-edition.test) | |
| HTTPS | YES | bool | use for detect scheme (http or https) |
| Parameter | Mandatory | Type | Default value | Description |
|---|---|---|---|---|
| SITE_NAME | YES | string | blueprintUE self-hosted edition | name of the site, used for email/description (e.g. blueprintUE self-hosted edition) |
| SITE_BASE_TITLE | NO | string | use for complete the title tag | |
| SITE_DESCRIPTION | NO | string | use for description tag in home page |
| Parameter | Mandatory | Type | Default value | Description |
|---|---|---|---|---|
| ANONYMOUS_ID | NO | int | user_id for all anonymous blueprints pasted |
PHPMailer is used as library for sending mails.
You can use msmtp as service docker for smtp relay and set smtp authentication inside.
| Parameter | Mandatory | Type | Default value | Description |
|---|---|---|---|---|
| MAIL_USE_SMTP | NO | bool | false | set PHPMailer to use SMTP |
| MAIL_SMTP_HOST | NO | string | localhost | SMTP host |
| MAIL_SMTP_PORT | NO | int | 25 | SMTP port |
| MAIL_USE_SMTP_AUTH | NO | bool | false | for SMTP authentication |
| MAIL_USE_SMTP_TLS | NO | bool | false | set to true if you need TLS like Gmail or any mail provider |
| MAIL_SMTP_USER | NO | string | user for SMTP authentication | |
| MAIL_SMTP_PASSWORD | NO | string | password for SMTP authentication | |
| MAIL_FROM_ADDRESS | YES | string | email display for sending emails (register and reset password) | |
| MAIL_FROM_NAME | NO | string | name display for sendings emails (register and reset password) | |
| MAIL_CONTACT_TO | YES | string | email receiver for the contact page | |
| MAIL_HEADER_LOGO_PATH | YES | string | blueprintue-self-hosted-edition_logo-full.png | header image in emails (complete by HOST parameter) |
SQLite is mandatory for that feature.
We store in a separate database called rate_limit.db at ROOT level.
Inside there is a table rate_limit with 2 fields: id and time.id is a sha512 of ip + salt + action.
We have 2 levels:
Default values are:
contact form: 1 mail sent per 30 minutes for 1 IP
contact form: 10 mails sent per 30 minutes for the website
forgot form: 1 mail sent per 30 minutes for 1 IP
forgot form: 10 mails sent per 30 minutes for the website
login form: 3 login success per 1 minute for 1 IP
login form: 30 login success send per 1 minute for the website
login form error: 5 login error per 5 minutes for 1 IP
login form error: 3 login error per 15 minutes for 1 account
register form: 1 mail sent per 30 minutes for 1 IP
register form: 10 mails sent per 30 minutes for the website
| Parameter | Mandatory | Type | Default value | Description | |-------------------------------------
No open issues yet, or sync has not completed.