Also take at look at the [uwsgi documentation](http://uwsgi-docs.readthedocs.io/en/latest/Systemd.html#one-service-per-app-in-systemd).
Also take at look at the [uwsgi documentation](http://uwsgi-docs.readthedocs.io/en/latest/Systemd.html#one-service-per-app-in-systemd).
## Configuration
## Configuration
### Middleware
`WAPI_NETVS_SUPERUSER` is the superuser for the middleware.
When queries are required which are not possible as the requesting user (due to permission restrictions), the superuser is used.
Therefore, the user must have the necessary permissions to execute those queries.
Typically, a user with `cntl.default_reader` and `wapi.devel_tester` is used.
As the queries are executed directly against the database, no token for the user is required; it will only be used to populate the context of the query.
### NET-DB
### NET-DB
#### Postgres
#### Postgres
Net-Suite uses different databases depending on the host operation mode defined in ```/usr/local/etc/host_oper_mode_data.cfg```:
Net-Suite uses different databases depending on the host operation mode defined in ```/usr/local/etc/host_oper_mode_data.cfg```: