You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
senzapaura_es/despliegue/senzapaura-estudio.service

38 lines
1.0 KiB

[Unit]
Description=Senza Paura — Estudio
After=network-online.target postgresql.service
Wants=network-online.target
StartLimitIntervalSec=60
StartLimitBurst=5
[Service]
Type=simple
User=senzapaura
Group=senzapaura
WorkingDirectory=/var/www/senzapaura/current
EnvironmentFile=/var/www/senzapaura/.env.estudio
Environment=HOST=127.0.0.1
Environment=PORT=3002
Environment=BODY_SIZE_LIMIT=260M
Environment=MEDIA_DIR=/var/www/senzapaura/media/audio
Environment=ESCUCHA_DIR=/var/www/senzapaura/media/escucha
Environment=ONDA_DIR=/var/www/senzapaura/media/ondas
Environment=ESTUDIO_IMAGEN_DIR=/var/www/senzapaura/media/estudio/imagenes
Environment=IMAGEN_DIR=/var/www/senzapaura/media/imagenes
ExecStart=/usr/bin/node build-estudio/index.js
Restart=always
RestartSec=5
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
RestrictSUIDSGID=true
ReadWritePaths=/var/www/senzapaura/media
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
[Install]
WantedBy=multi-user.target

Powered by TurnKey Linux.