mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-27 15:43:22 +02:00
36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
![]() |
[Unit]
|
||
|
Description=Opensource framework to build app and workflows
|
||
|
After=syslog.target network.target mongodb.service redis.service
|
||
|
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
User={{ appsmith_user }}
|
||
|
Group={{ appsmith_user }}
|
||
|
EnvironmentFile={{ appsmith_root_dir }}/etc/env
|
||
|
WorkingDirectory={{ appsmith_root_dir }}/server
|
||
|
PermissionsStartOnly=yes
|
||
|
ExecStartPre={{ appsmith_root_dir }}/bin/pre-start
|
||
|
ExecStart=/bin/java -Djava.net.preferIPv4Stack=true \
|
||
|
-Dserver.port={{ appsmith_server_port }} \
|
||
|
-Djava.security.egd="file:/dev/./urandom" \
|
||
|
{% if system_proxy is defined and system_proxy != '' %}
|
||
|
-Dhttp.proxyHost={{ system_proxy | urlsplit('hostname') }} \
|
||
|
-Dhttp.proxyPort={{ system_proxy | urlsplit('port') }} \
|
||
|
-Dhttps.proxyHost={{ system_proxy | urlsplit('hostname') }} \
|
||
|
-Dhttps.proxyPort={{ system_proxy | urlsplit('port') }} \
|
||
|
{% endif %}
|
||
|
-jar server-1.0-SNAPSHOT.jar
|
||
|
PrivateTmp=yes
|
||
|
ProtectSystem=full
|
||
|
ProtectHome=yes
|
||
|
NoNewPrivileges=yes
|
||
|
MemoryLimit=4096M
|
||
|
Restart=on-failure
|
||
|
StartLimitInterval=0
|
||
|
RestartSec=30
|
||
|
SyslogIdentifier=appsmith-server
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|
||
|
|