Skip to content

Commit 6ac8ee8

Browse files
sjanssen2antgonza
andauthored
ext documentation nginx mod_zip (#3409)
* Update CHANGELOG.md * Note about missing mod_zip As I wasted too much time in figuring out what's wrong with anonymous link downloads, I thought it would be handy to summarize my lessons learned for others * add git "secretly" adding git as an Ubuntu package to be installed in a fresh system. Git later referred to for obtaining the Qiita sources. --------- Co-authored-by: Antonio Gonzalez <[email protected]>
1 parent 7c7600e commit 6ac8ee8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

INSTALL.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ You can reboot the system with `sudo reboot` in case any packages were updated.
7878
Next, we need to add the Postgres repository to our system:
7979
```bash
8080
sudo apt update
81-
sudo apt install curl gpg gnupg2 software-properties-common apt-transport-https lsb-release ca-certificates
81+
sudo apt install curl gpg gnupg2 software-properties-common apt-transport-https lsb-release ca-certificates git
8282
curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc|sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/postgresql.gpg
8383
echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" |sudo tee /etc/apt/sources.list.d/pgdg.list
8484
```
@@ -238,6 +238,9 @@ If you are using [NGINX](https://www.nginx.com/) via conda, you are going to nee
238238
mkdir -p ${CONDA_PREFIX}/var/run/nginx/
239239
```
240240

241+
Note that the shipped nginx version from conda, does **not** contain the mod_zip module: https://github.com/evanmiller/mod_zip
242+
This leads to unexpected behaviour when generating a download link for anonymous artefact sharing, i.e. Qiita returns a flat file listing artifact filepaths instead of generating a ZIP archive that contains those files. You need to compile nginx with the additional mod_zip module yourself. (I've invested multiple hours to realize that the configure routine does not properly link shared libraries to the nginx binary. Try adding `--with-ld-opt=" -Wl,-rpath,/home/foo/lib "` to the `./auto/configure` call.)
243+
241244
## Start Qiita
242245

243246
Start postgres (instructions vary depending on operating system and install method).

0 commit comments

Comments
 (0)