mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Continued snipe-it implementation
This commit is contained in:
@@ -6,10 +6,16 @@
|
||||
- name: "include tasks nginx-docker-proxy-domain.yml"
|
||||
include_tasks: nginx-docker-proxy-domain.yml
|
||||
|
||||
- name: create .env
|
||||
template: src=env.j2 dest={{docker_compose.directories.instance}}/.env
|
||||
- name: "create {{docker_compose.files.docker_compose}}"
|
||||
template:
|
||||
src: "docker-compose.yml.j2"
|
||||
dest: "{{docker_compose.files.docker_compose}}"
|
||||
notify: docker compose project setup
|
||||
|
||||
- name: add docker-compose.yml
|
||||
template: src=docker-compose.yml.j2 dest={{docker_compose.directories.instance}}docker-compose.yml
|
||||
- name: "create {{docker_compose.files.env}}"
|
||||
template:
|
||||
src: "env.j2"
|
||||
dest: "{{docker_compose.files.env}}"
|
||||
mode: '770'
|
||||
force: yes
|
||||
notify: docker compose project setup
|
||||
|
@@ -2,10 +2,10 @@
|
||||
# REQUIRED: BASIC APP SETTINGS
|
||||
# --------------------------------------------
|
||||
APP_ENV=production
|
||||
APP_DEBUG=false
|
||||
APP_DEBUG={{mode_debug | string | lower }}
|
||||
# Please regenerate the APP_KEY value by calling `docker compose run --rm app php artisan key:generate --show`. Copy paste the value here
|
||||
APP_KEY=base64:3ilviXqB9u6DX1NRcyWGJ+sjySF+H18CPDGb3+IVwMQ=
|
||||
APP_URL=https://{{domain}}
|
||||
APP_KEY={{applications.snipe_it.app_key}}
|
||||
APP_URL=http://{{domain}}
|
||||
# https://en.wikipedia.org/wiki/List_of_tz_database_time_zones - TZ identifier
|
||||
APP_TIMEZONE='{{timezone}}'
|
||||
APP_LOCALE={{locale}}
|
||||
@@ -25,13 +25,15 @@ DB_HOST={{database_host}}
|
||||
DB_PORT={{database_port}}
|
||||
DB_DATABASE={{database_name}}
|
||||
DB_USERNAME={{database_username}}
|
||||
DB_PASSWORD={{pixelfed_database_password}}
|
||||
#MYSQL_ROOT_PASSWORD=
|
||||
#DB_PREFIX=null
|
||||
#DB_DUMP_PATH='/usr/bin'
|
||||
#DB_CHARSET=utf8mb4
|
||||
#DB_COLLATION=utf8mb4_unicode_ci
|
||||
DB_PASSWORD={{database_password}}
|
||||
|
||||
{% if not enable_central_database | bool %}
|
||||
MYSQL_ROOT_PASSWORD={{database_password}}
|
||||
DB_PREFIX=null
|
||||
DB_DUMP_PATH='/usr/bin'
|
||||
DB_CHARSET=utf8mb4
|
||||
DB_COLLATION=utf8mb4_unicode_ci
|
||||
{% endif %}
|
||||
# --------------------------------------------
|
||||
# OPTIONAL: SSL DATABASE SETTINGS
|
||||
# --------------------------------------------
|
||||
@@ -47,14 +49,14 @@ DB_SSL_VERIFY_SERVER=null
|
||||
# REQUIRED: OUTGOING MAIL SERVER SETTINGS
|
||||
# --------------------------------------------
|
||||
MAIL_MAILER = smtp
|
||||
MAIL_HOST = {{system_email.host}} # SMTP server address
|
||||
MAIL_PORT = {{system_email.host}} # SMTP server address
|
||||
MAIL_USERNAME = {{system_email.username}} # user to connect the SMTP server
|
||||
MAIL_PASSWORD = {{system_email.password}} # SMTP user's password
|
||||
MAIL_TLS_VERIFY_PEER = EMAIL_USE_TLS={{ system_email.tls | lower | capitalize }} # use TLS (secure) connection with the SMTP server
|
||||
MAIL_FROM_ADDR = {{system_email.from}} # default email address for the automated emails
|
||||
MAIL_HOST = {{system_email.host}} # SMTP server address
|
||||
MAIL_PORT = {{system_email.port}} # SMTP server address
|
||||
MAIL_USERNAME = {{system_email.username}} # user to connect the SMTP server
|
||||
MAIL_PASSWORD = {{system_email.password}} # SMTP user's password
|
||||
MAIL_TLS_VERIFY_PEER = {{ system_email.tls | lower | capitalize }} # use TLS (secure) connection with the SMTP server
|
||||
MAIL_FROM_ADDR = {{system_email.from}} # default email address for the automated emails
|
||||
MAIL_FROM_NAME = 'Snipe-IT'
|
||||
MAIL_REPLYTO_ADDR = {{system_email.from}} # default email address for the automated emails
|
||||
MAIL_REPLYTO_ADDR = {{system_email.from}} # default email address for the automated emails
|
||||
MAIL_REPLYTO_NAME = 'Snipe-IT'
|
||||
MAIL_AUTO_EMBED_METHOD = 'attachment'
|
||||
|
||||
@@ -94,7 +96,7 @@ API_TOKEN_EXPIRATION_YEARS=40
|
||||
APP_TRUSTED_PROXIES=172.17.0.1 # Docker Gateway
|
||||
ALLOW_IFRAMING=false
|
||||
REFERRER_POLICY=same-origin
|
||||
ENABLE_CSP=true
|
||||
ENABLE_CSP=false
|
||||
CORS_ALLOWED_ORIGINS=null
|
||||
ENABLE_HSTS=false # Certificates managed by nginx
|
||||
|
||||
@@ -160,7 +162,7 @@ LOG_CHANNEL=stderr
|
||||
LOG_MAX_DAYS=10
|
||||
APP_LOCKED=false
|
||||
APP_CIPHER=AES-256-CBC
|
||||
APP_FORCE_TLS=false
|
||||
APP_FORCE_TLS=true
|
||||
GOOGLE_MAPS_API=
|
||||
LDAP_MEM_LIM=500M
|
||||
LDAP_TIME_LIM=600
|
@@ -1,3 +1,8 @@
|
||||
application_id: "snipe_it"
|
||||
database_password: "{{applications.snipe_it.database_password}}"
|
||||
database_type: "mariadb"
|
||||
application_id: "snipe_it"
|
||||
database_password: "{{applications.snipe_it.database_password}}"
|
||||
database_type: "mariadb"
|
||||
|
||||
# deactivated due to error
|
||||
# SQLSTATE[42000]: Syntax error or access violation: 1067 Invalid default value for 'locale'
|
||||
# alter table `users` add `locale` varchar(5) null default 'locale'
|
||||
enable_central_database: false
|
Reference in New Issue
Block a user