nama.properties
nama.properties is the one file that tells an installation what it is: what to call itself, where its files live, which addresses it hands out, and which of the system's safety valves are open. It sits beside the application on the server — normally in Tomcat's lib folder — and it is read when the server starts and read again by Utilities → Reload Configuration, so a change to it takes effect after a restart or a Reload Configuration. The settings that act while the server is starting (tasks-initial-delay-minutes, processors-initial-delay-minutes and no-background-processors) need the restart.
The format is one key=value per line:
customer=Nile Group
serverid=production-1
timezone=Africa/CairoThis page covers the settings support staff actually set on a customer's server. The system reads many more, but they are internal flags that exist for a developer chasing one specific problem — if a setting is not here and nobody told you to add it, it should not be in the file.
A misspelled setting is not an error
Nothing in this file is validated. A misspelled key is simply never read, and a value the system does not recognise falls back to the default — either way the server starts as usual and logs no complaint. When a setting seems to have no effect, check its spelling before looking anywhere else. The one value that is checked is timezone: an unknown time zone shows up on the critical errors list.
What this installation calls itself
| Setting | What it does |
|---|---|
customer | The customer's name, as it appears in the licence and in messages the server sends home. |
serverid | This server's identity. It is what decides whether this machine is allowed to send e-mails and SMS — see below — so a test copy must never keep production's value. |
timezone | The time zone the server runs in, such as Asia/Riyadh. It overrides the time zone of Tomcat and of Windows, and is applied again by Utilities → Reload Configuration. A name the system does not know is ignored and reported on the critical errors list. Server Time Zone has the name for each country and the option that refuses a server in the wrong zone. |
Addresses the system hands out
Nama writes links into e-mails, reports and mobile responses, and it cannot guess the address a user reaches it by:
| Setting | What it does |
|---|---|
server | The server's own address, e.g. http://192.168.1.5:8080/. Needed by replication and by anything that builds a link. |
guiserver | The address of the user interface, e.g. http://192.168.1.5:8080/erp/ — this is what a link in a printed report or an e-mail points at. |
approvalsServer | The address used for approval links, when approvals are answered from outside. |
background-server-url | The address of the server that runs background processing, when it is a separate machine. It is required on a server that has no-background-processors set: that server calls this address to confirm the background server is alive, and puts The background processor is not working, please check the server on the critical errors list when it does not answer. |
A link that lands the user on localhost is almost always one of these left unset.
Mail, SMS and WhatsApp — especially on a copy
The most expensive accident in ERP support is a test copy of a live database that starts e-mailing and texting the customer's customers. The real safety catch is serverid (see the warning below); these settings narrow what a server that is allowed to send actually sends:
| Setting | What it does |
|---|---|
sendmailsandsms | Only for a server run from a developer's IDE: there it must be true for anything to be sent. It has no effect on a normal server. |
send-emails-only-to | The To recipients of every e-mail the system produces are replaced by this address. CC addresses on the message are not replaced. |
send-sms-only-to | A filter, not a redirect: only recipients whose number contains this value receive the SMS; every other recipient is skipped. |
send-whatsapp-only-to | Every WhatsApp message goes to this number instead of its real recipient. |
log-sms-data | Records the body and the provider URL of each SMS so you can see what was actually sent. Diagnostic — turn it off afterwards. |
Telegram messages and mobile push notifications have no such setting — on a copy, the server id is the only thing that stops them.
Restoring a production backup onto a test server
The real safety catch is serverid. Change it before the first startup, then set send-emails-only-to and send-sms-only-to to your own address and number. The sending rule is serverid matched against the Send Mails And SMS Only From Servers (CSV) list in Global Configuration, and that list travels inside the database you just restored — so a clone that keeps production's server id is, as far as the software is concerned, production.
Keeping people out
| Setting | What it does |
|---|---|
prevent-login-of-login-ids | A comma-separated list of login ids that cannot sign in. |
prevent-login-of-login-ids-msg | The message they see. {0} is replaced with the login id. |
prevent-login-of-ips | A comma-separated list of blocked addresses, matched by prefix — 192.168 blocks the whole range. |
prevent-login-of-ips-msg | The message they see, with {0} for the address. |
use-ldap-for-authentication | Hand password checking to the customer's LDAP directory. |
preventViewingPublicDocuments | When true, documents saved with PUBLIC in a dimension are hidden from users working inside a specific value of that dimension, unless Show Public Document To All is on in global configuration. Master files are not affected. |
prevent-login-of-login-ids=user1,user2
prevent-login-of-login-ids-msg=The user {0} is prevented from login by the administrator
prevent-login-of-ips=192.168,214.165.10.13
prevent-login-of-ips-msg=You cannot login from IP {0}These are a blunt instrument for an emergency — a leaked account, an office that must be locked out today. Ordinary access control belongs in security profiles, not in this file.
Files and attachments
| Setting | What it does |
|---|---|
tempFolder | Where temporary files are written. Defaults to c:/nama/temp on Windows and /var/nama/temp elsewhere. |
local-external-attachments-folder | The folder this server keeps externalized attachments in. It overrides External Attachments Folder of global configuration on this server only, and is used only for attachments stored outside the database, which are the ones saved while Externalize Attachments is on there; it does not move attachments out of the database by itself. |
max-single-attachment-size-kb | Rejects a single attachment larger than this. |
max-total-attachment-size-gb | Caps the total size of attachments. |
disable-mobile-attachments | When true, the mobile apps exchange no attachments: none are sent to the app, and attachments the app sends are ignored (the record keeps the ones it has). Only for older app builds that fail on the current attachment format. Default false. |
Background work
| Setting | What it does |
|---|---|
tasks-initial-delay-minutes | Holds scheduled tasks back for this many minutes after startup, so a restarting server is not immediately busy. The default is 5. |
processors-initial-delay-minutes | The same for the background processors. The default is 5. |
no-background-processors | Stops the background processors and the scheduled tasks on this server. A server with this set saves documents but never processes them, so it is only for an installation where a second server on the same database does the background work. It must be set together with background-server-url. |
disable-critical-errors | Turns off the critical-errors checks: isolation level, missing server id, disk space, failed business requests. Only for a server where those checks are known to be noise. |
disable-sql-clock-alignment | Stops Nama from reading the database clock in the server's own time zone when the server and the SQL Server machine are in different zones. Only for ruling it out while investigating a query: see Server Time Zone. |
util-run-retention-hours | How many hours the Utility Runner keeps the result of a finished utility run. The default is 24. |
Defaults on new documents
valuedate and issuedate set the date a new document opens with, written as dd-mm-yyyy. They are for a data-entry catch-up — a batch of last month's paperwork — and should be removed when the catch-up is over, or every document created afterwards carries a stale date.
POS documents on the server
POS documents are written by the point-of-sale application, and the server refuses to let anyone edit or delete them by hand. allowposedit=true and allowposdelete=true lift those refusals. They are a correction tool, not a setting: turn on, fix the document, turn off.
Diagnostics you may be asked to switch on
Each of these makes the log louder for one area. Turn them on while reproducing a problem and off again immediately — on a busy installation they fill a disk quickly.
| Setting | What it logs |
|---|---|
detailederror | Full error detail instead of the short user-facing message. |
logws | Web-service calls in and out. |
log-failed-login-details | Why each failed sign-in failed. |
logreplication / debugreplication | Replication messages, and the verbose version. |
debugATTENDANCE | The HR attendance calculation, step by step. |
log-to-files-in-debug | Writes logs to files even when the server runs from an IDE. |
replication.properties
A site that takes part in replication carries a second file beside the first, replication.properties:
| Setting | What it does |
|---|---|
enable | Whether replication runs on this site at all. |
siteid | This site's code. Without it, replication refuses to start. |
sitesequence | This site's sequence number, used when generating codes so two sites never mint the same one. It is required. |
headofficeurl | The head office address this site talks to. |
headofficeip | The head office address, when given as a plain address rather than a URL. |
enable=true
siteid=001
sitesequence=1
headofficeurl=http://192.168.1.5:8080/