Skip to content

add basic server configuration #88

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions manual/ServerConfiguration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Install necessary software
Install docker-ce 1.35+ (Is this the correct version??)
Install postgresql

# Start docker
sudo systemctl start docker

# Database
Make sure to install PostgreSQL.
You may first need to run
```
postgresql-setup --initdb --unit postgresql
```

## Setup postgresql username and password
sudo bash
> su postgres
> > \password postgres

## Change auth mode to username+password
In the pg_hba.conf file (usually in /var/lib/pgsql/data/pg_hba.conf):

```
local all all md5
host all all 127.0.0.1/32 md5
```

## Restart posgresql
sudo systemctl restart postgresql.service

## Create database
createdb jobadder --owner postgres -U postgres

# Server

Copy the default configuration file to `/etc/jobadder/server.conf`, then adjust the database password (and username, if you do not use the default).
You can also set up an email server connection and web api port.