summaryrefslogtreecommitdiff
path: root/sysutils/nginx-ui/files/pkg-message.in
blob: e847e30b79e5a8fc6c7ff232690d0b84c29165a3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
[
{ type: install
  message: <<EOM
NGINX UI is installed

1) Install a variant of NGINX like www/nginx:

     pkg install -y www/nginx

2) Populate NGINX directory with the directories
   required by NGINX UI:

     mkdir -p %%PREFIX%%/etc/nginx/conf.d
     mkdir -p %%PREFIX%%/etc/nginx/streams-enabled
     mkdir -p %%PREFIX%%/etc/nginx/sites-enabled
     mkdir -p %%PREFIX%%/etc/nginx/sites-available
     mkdir -p %%PREFIX%%/etc/nginx/streams-available

3) Configure NGINX:

     cp %%DATADIR%%/nginx-ui.conf %%PREFIX%%/etc/nginx/conf.d
     cp %%DATADIR%%/nginx.conf %%PREFIX%%/etc/nginx/nginx.conf

   Of course, if you have already modified nginx.conf, backup it first.
   Then, after copying the new nginx.conf, edit it according to your needs.

4) Configure NGINX UI in /var/db/nginx-ui/app.ini

5) Enable NGINX UI with

     sysrc nginx_ui_enable=YES

6) Start both NGINX and NGINX UI with

     service nginx-ui start
     service nginx start
EOM
}
]