Skip to content

Commit

Permalink
Using git https links to pkg/openresty lua packages.
Browse files Browse the repository at this point in the history
docs: add details about being non-root to build openresty
zopieux committed Apr 16, 2015
1 parent 6455d6b commit bdd0949
Showing 4 changed files with 12 additions and 9 deletions.
11 changes: 7 additions & 4 deletions docs/source/setup.rst
Original file line number Diff line number Diff line change
@@ -142,15 +142,15 @@ provided with the application in order to setup what it requires::
.. note::

You don't have to create super users for ``mdb`` or ``udb`` using the
``manage.py`` command. The root users you will add will add to ``udb`` will
``manage.py`` command. The root users you will add to ``udb`` will
be super user and replicated to ``mdb``. If you want to modify the databases
before that, use ``manage.py shell``.

This command installed the ``mdb`` application to ``/var/prologin/mdb`` and
installed the ``systemd`` and ``nginx`` configuration files required to run the
application.

Don't forget to change the ``secret_key`` used by Django.
Don't forget to change the ``secret_key`` used by Django::

$EDITOR /etc/prologin/mdb-server.yml

@@ -605,14 +605,17 @@ You will want to ssh at this machine, so enable ``udbync_rootssh``::
systemctl enable udbsync_rootssh && systemctl start udbsync_rootssh

We'll now compile our custom version of openresty, a nginx extension with lua
scripting. This is primarily used for Single Sign-On (SSO).
scripting. This is primarily used for Single Sign-On (SSO). Because ``makepkg``
won't let you build packages as root, you either have to create a new user or
build the package on another machine and then transfer it over.

Build the package::

cd pkg/openresty
make all

Then, install the package that was just built::
You should get a tarball named like ``openresty-version.pkg.tar.xz``. Proceed
to its installation on the target machine::

pacman -U openresty-*.pkg.tar.xz

2 changes: 1 addition & 1 deletion pkg/openresty/logrotate
Original file line number Diff line number Diff line change
@@ -7,4 +7,4 @@
postrotate
test ! -r /run/nginx.pid || kill -USR1 `cat /run/nginx.pid`
endscript
}
}
6 changes: 3 additions & 3 deletions pkg/openresty/lua-resty-extra-lib/Makefile
Original file line number Diff line number Diff line change
@@ -19,13 +19,13 @@ MKDIR = mkdir
all: $(DEST)

lua-resty-cookie:
$(GITCLONE) git@github.com:cloudflare/lua-resty-cookie.git
$(GITCLONE) https://github.com/cloudflare/lua-resty-cookie.git

lua-resty-hmac:
$(GITCLONE) git@github.com:jkeys089/lua-resty-hmac.git
$(GITCLONE) https://github.com/jkeys089/lua-resty-hmac.git

lua-resty-http-simple:
$(GITCLONE) git@github.com:bakins/lua-resty-http-simple.git
$(GITCLONE) https://github.com/bakins/lua-resty-http-simple.git

lua-resty-cookie-makefile: lua-resty-cookie
$(CP) Makefile.inroot "$</Makefile"
2 changes: 1 addition & 1 deletion pkg/openresty/service
Original file line number Diff line number Diff line change
@@ -15,4 +15,4 @@ KillSignal=SIGQUIT
KillMode=mixed

[Install]
WantedBy=multi-user.target
WantedBy=multi-user.target

0 comments on commit bdd0949

Please sign in to comment.