Skip to content
Discussion options

You must be logged in to vote

Good news is you can definitely use environment variables instead of those command line arguments for Remark42.

The systemd service file can be modified to use an environment file (.env) instead. Here's how to set it up:

  1. First, create an environment file (let's say at /etc/remark42.env):
SECRET=12345
REMARK_URL=http://127.0.0.1:8080
  1. Then update your systemd service file to use this env file:
[Unit]
Description=Remark42 Commenting Server
After=network.target

[Service]
Type=simple
EnvironmentFile=/etc/remark42.env
ExecStart=/usr/local/bin/remark42 server
WorkingDirectory=/var/www/remark42
Restart=on-failure
User=nobody
Group=nogroup

[Install]
WantedBy=multi-user.target

The beauty of…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Bradleykingz
Comment options

Comment options

paskal
Mar 24, 2025
Collaborator Sponsor

You must be logged in to vote
1 reply
@Bradleykingz
Comment options

Answer selected by Bradleykingz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1899 on February 26, 2025 19:58.