Update INSTALL.md #10

Merged
AndyHee merged 5 commits from master into master 2018-11-14 16:08:47 +01:00

View file

@ -62,6 +62,22 @@ In your Virtual Host file, set your document root as follow:
DocumentRoot /path/to/friendica-directory/public/ DocumentRoot /path/to/friendica-directory/public/
MrPetovan commented 2018-11-14 15:47:46 +01:00 (Migrated from github.com)
Review

Are you sure you need the q=$uri here?

Are you sure you need the `q=$uri` here?
AndyHee commented 2018-11-14 15:54:33 +01:00 (Migrated from github.com)
Review

Not required. I removed it.

    try_files $uri /index.php?$args;

What about these ttf|woff|svg ?

Not required. I removed it. ```suggestion try_files $uri /index.php?$args; ``` What about these `ttf|woff|svg` ?
MrPetovan commented 2018-11-14 16:08:07 +01:00 (Migrated from github.com)
Review

We use fontawesome so I would keep the mentions of the fonts and svg files.

We use fontawesome so I would keep the mentions of the fonts and svg files.
AndyHee commented 2018-11-14 16:09:03 +01:00 (Migrated from github.com)
Review

OK. Thanks.

OK. Thanks.
``` ```
### Nginx
Add these lines to your nginx config file.
```
root /path/to/friendica-directory/public;
location / {
rewrite ^/(.*) /index.php?$args last;
}
location ~* \.(jpg|jpeg|gif|png|ico|css|js|htm|html|ttf|woff|svg)$ {
expires 30d;
try_files $uri /index.php?$args;
}
```
## 4. Set up the background task ## 4. Set up the background task
Friendica Directory relies on a background task running every minute to keep the directory up to date. Friendica Directory relies on a background task running every minute to keep the directory up to date.