fix mail for baikal
This commit is contained in:
parent
8bdcce8e1e
commit
599113768d
6 changed files with 32 additions and 22 deletions
2
sabre-dav/.idea/misc.xml
generated
2
sabre-dav/.idea/misc.xml
generated
|
@ -3,5 +3,5 @@
|
|||
<component name="Black">
|
||||
<option name="sdkName" value="Python 3.13 (sabre-dav)" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.13 (sabre-dav)" project-jdk-type="Python SDK" />
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.13" project-jdk-type="Python SDK" />
|
||||
</project>
|
9
sabre-dav/.idea/sabre-dav.iml
generated
9
sabre-dav/.idea/sabre-dav.iml
generated
|
@ -1,12 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="PYTHON_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<excludeFolder url="file://$MODULE_DIR$/.venv" />
|
||||
</content>
|
||||
<orderEntry type="jdk" jdkName="Python 3.13 (sabre-dav)" jdkType="Python SDK" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
<module version="4">
|
||||
<component name="TemplatesService">
|
||||
<option name="TEMPLATE_FOLDERS">
|
||||
<list>
|
||||
|
|
|
@ -41,6 +41,11 @@
|
|||
src: ./templates/container/baikal.container.j2
|
||||
dest: /etc/containers/systemd/baikal.container
|
||||
mode: "0644"
|
||||
- name: "Copy environment file"
|
||||
ansible.builtin.template:
|
||||
src: ./templates/container/environment_file
|
||||
dest: "{{ baikal.base_directory }}/environment_file"
|
||||
mode: "0644"
|
||||
- name: Reload systemd
|
||||
ansible.builtin.command:
|
||||
cmd: systemctl daemon-reload
|
||||
|
|
|
@ -7,7 +7,17 @@ AutoUpdate=registry
|
|||
PublishPort={{ baikal.port }}:80/tcp
|
||||
Volume={{ baikal.base_directory }}/{{ baikal.data_directory }}:/var/www/baikal/Specific:Z
|
||||
Volume={{ baikal.base_directory }}/{{ baikal.config_directory }}:/var/www/baikal/config:Z
|
||||
Environment=MSMTPRC={{ baikal.mail }}
|
||||
Environment="MSMTPRC=defaults\n\
|
||||
auth on\n\
|
||||
tls on\n\
|
||||
tls_trust_file /etc/ssl/certs/ca-certificates.crt\n\
|
||||
account default\n\
|
||||
host host\n\
|
||||
port 587\n\
|
||||
from baikal@example.com\n\
|
||||
user user\n\
|
||||
password pass\n\
|
||||
"
|
||||
|
||||
[Service]
|
||||
# Inform systemd of additional exit status
|
||||
|
|
13
sabre-dav/templates/container/environment_file
Normal file
13
sabre-dav/templates/container/environment_file
Normal file
|
@ -0,0 +1,13 @@
|
|||
MSMTPRC="
|
||||
defaults
|
||||
auth on
|
||||
tls on
|
||||
tls_trust_file /etc/ssl/certs/ca-certificates.crt
|
||||
account default
|
||||
host <smtp host>
|
||||
port 587
|
||||
from baikal@example.com
|
||||
user <user>
|
||||
password <password>
|
||||
"
|
||||
|
|
@ -4,15 +4,4 @@ baikal:
|
|||
port: 8069
|
||||
base_directory: "/baikal"
|
||||
data_directory: "data"
|
||||
config_directory: "config"
|
||||
mail: "" # note you will need to inline the following variables
|
||||
# defaults
|
||||
# auth on
|
||||
# tls on
|
||||
# tls_trust_file /etc/ssl/certs/ca-certificates.crt
|
||||
# account default
|
||||
# host <smtp host>
|
||||
# port 587
|
||||
# from baikal@example.com
|
||||
# user <user>
|
||||
# password <password>
|
||||
config_directory: "config"
|
Loading…
Add table
Reference in a new issue