Blob


1 => / Home
2 => /gmid.1.txt docs
4 # Contrib
6 This directory is for additional contributed files which may be useful.
8 ## Dockerfile
10 => https://git.omarpolo.com/gmid/tree/contrib/Dockerfile contrib/Dockerfile
12 A sample Dockerfile. The resulting image is a classic alpine linux image with a statically linked gmid installed as /bin/gmid.
13 To build the image:
15 ```instructions to build the image
16 # docker build -f contrib/Dockerfile -t gmid .
17 ```
19 and then run it with something along the lines of:
21 ```instruction to run the image
22 # docker run --rm -it -p 1965:1965 \
23 -v gmid.conf:/etc/gmid.conf:ro \
24 -v path/to/keys:/tls:ro \
25 -v /var/gemini:/var/gemini:ro \
26 gmid -c /etc/gmid.conf
27 ```
29 ## OpenBSD rc file
31 => https://git.omarpolo.com/gmid/tree/contrib/gmid contrib/gmid
33 contrib/gmid is a sample service file for OpenBSD rc(8). To install it:
35 ```command to install the rc file
36 # cp contrib/gmid /etc/rc.d
37 ```
39 then the usual ‘rcctl [start|stop|enable|restart] gmid’ are available.
41 ## Systemd unit file
43 => https://git.omarpolo.com/gmid/tree/contrib/gmid.service gmid.service
45 A simple service file for systemd. To install it
47 ```instructions to install the system file
48 # cp contrib/gmid.service /lib/systemd/system/gmid.service
49 ```
51 then the usual ‘systemctl [status|start|enable|stop] gmid’ commands can be used to manage the server.
53 Some things to keep in mind:
54 * the ExecStart path may depend on the installation
55 * a ‘gmid’ user needs to be create for e.g. with
57 ```how to create a dedicated user
58 # useradd --system --no-create-home -s /bin/nologin -c "gmid Gemini server" gmid
59 ```
61 * logs can be inspected with journalctl(1)
63 ```reads gmid logs with journalctl
64 # journalctl -t gmid
65 ```
67 ## Vim syntax files
69 => https://git.omarpolo.com/gmid/tree/contrib/vim contrib/vim
71 contrib/vim contains a syntax highlighting for vim. To install it, just copy the files to ~/.vim or to /usr/share/vim/vimfiles, e.g.:
73 ```install the vim syntax highlight in your home
74 $ mkdir -p ~/.vim
75 $ cp -R contrib/vim/* ~/.vim/
76 ```
78 To enable Syntastic checker, add to your vimrc:
80 ```
81 let g:syntastic_gmid_checkers = ['gmid']
82 ```
84 => vim-screenshot.png Screenshot of vim editing gmid.conf