~/configs$
Every configuration file our guides set up, exactly as it was on a fresh test server after the steps had worked. Copy one, then read its guide for what each line does.
13 files from 6 guides. Passwords are shown as [password]: put in your own.
~/configs$ls dspace-cron-jobs
From the Ubuntu 26.04 run on .
# DSpace scheduled jobs (as the dspace user). Times are the server's local time; none at exactly midnight,# when DSpace starts a new log file.MAILTO=""# daily: sitemaps for search engines, OAI-PMH, thumbnails and full text, the search index15 0 * * * /dspace/bin/dspace generate-sitemaps > /dev/null 2>&10 1 * * * /dspace/bin/dspace oai import > /dev/null 2>&10 2 * * * /dspace/bin/dspace filter-media > /dev/null 2>&130 2 * * * /dspace/bin/dspace index-discovery > /dev/null 2>&1# daily: subscription emails (needs mail set up in local.cfg)0 3 * * * /dspace/bin/dspace subscription-send -f D > /dev/null 2>&1# weekly on Sunday: check every file against its checksum, then email the report0 4 * * 0 /dspace/bin/dspace checker -lp > /dev/null 2>&10 6 * * 0 /dspace/bin/dspace checker-emailer > /dev/null 2>&1# weekly on Saturday: remove deleted files from the asset store, old process records0 4 * * 6 /dspace/bin/dspace cleanup > /dev/null 2>&130 4 * * 6 /dspace/bin/dspace process-cleaner > /dev/null 2>&1# monthly: bring the Solr search data back in line with the database0 5 1 * * /dspace/bin/dspace solr-database-resync > /dev/null 2>&1Read back with `sudo crontab -u dspace -l`.
~/configs$ls install-dspace-ubuntu
From the Ubuntu 26.04 run on .
[Unit]Description=DSpace backend (REST API)After=network.target postgresql.service solr.serviceWants=postgresql.service solr.service [Service]User=dspaceWorkingDirectory=/dspaceExecStart=/usr/bin/java -Xmx2g -Dfile.encoding=UTF-8 -jar /dspace/webapps/server-boot.jar --server.address=127.0.0.1SuccessExitStatus=143Restart=on-failure [Install]WantedBy=multi-user.target[Unit]Description=DSpace web interfaceAfter=network.target dspace.serviceWants=dspace.service [Service]User=dspaceWorkingDirectory=/home/dspace/uiEnvironment=NODE_ENV=productionExecStart=/usr/bin/node dist/server/main.jsRestart=on-failure [Install]WantedBy=multi-user.targetui: ssl: false host: 127.0.0.1 port: 4000 baseUrl: http://localhost:4000 nameSpace: /rest: ssl: false host: localhost port: 8080 nameSpace: /serverOptional · fill in your own values to copy this file as it is
It is the password you choose in step 2; local.cfg in step 5 uses the same one.
You can skip this: then replace [password] with your own value in each command and file below before you run it. A password typed here is kept only while this page is open, never saved or sent.
dspace.dir=/dspacedspace.server.url = http://localhost:8080/serverdspace.server.ssr.url = ${dspace.server.url}dspace.ui.url = http://localhost:4000dspace.name = DSpace at My Universitydb.url = jdbc:postgresql://localhost:5432/dspacedb.username = dspacedb.password = [password]ldn.enabled = trueonly the active lines; the file also holds many commented examples
SOLR_OPTS="$SOLR_OPTS -Dsolr.config.lib.enabled=true"SOLR_JETTY_HOST="127.0.0.1"only the two lines this guide adds
~/configs$ls docker-compose-ubuntu
From the Ubuntu 26.04 run on .
services: db: image: postgres:17-alpine restart: unless-stopped environment: POSTGRES_DB: app POSTGRES_USER: app POSTGRES_PASSWORD: ${DB_PASSWORD} volumes: - db-data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U app -d app"] interval: 5s timeout: 3s retries: 10 adminer: image: adminer:5 restart: unless-stopped ports: - "127.0.0.1:8080:8080" depends_on: db: condition: service_healthy volumes: db-data:Optional · fill in your own values to copy this file as it is
Get it with cat ~/myapp/.env. It is the random password step 2 wrote into .env.
You can skip this: then replace [password] with your own value in each command and file below before you run it. A password typed here is kept only while this page is open, never saved or sent.
DB_PASSWORD=[password]the password was generated on the server with openssl rand -hex 16
~/configs$ls systemd-timer-ubuntu
From the Ubuntu 26.04 run on .
[Unit]Description=Remove old temp files [Service]Type=oneshotExecStart=/usr/local/bin/cleanup-tmp[Unit]Description=Remove old temp files every night [Timer]OnCalendar=*-*-* 03:00:00Persistent=true [Install]WantedBy=timers.target~/configs$ls journalctl-logs-ubuntu
From the Ubuntu 26.04 run on .
[Journal]SystemMaxUse=200M~/configs$ls systemd-service-ubuntu
From the Ubuntu 26.04 run on .
[Unit]Description=Hello web appAfter=network.target [Service]User=helloGroup=helloWorkingDirectory=/opt/helloEnvironment=PORT=8001ExecStart=/usr/bin/python3 /opt/hello/app.pyRestart=on-failureRestartSec=2 [Install]WantedBy=multi-user.target[Service]NoNewPrivileges=yesProtectSystem=strictProtectHome=yesPrivateTmp=yesPrivateDevices=yesProtectKernelTunables=yesProtectKernelModules=yesProtectControlGroups=yesRestrictSUIDSGID=yesCapabilityBoundingSet=