Created
August 6, 2017 23:41
-
-
Save kylejohnson/6c5156bf1ba78f36efe07038c196faed to your computer and use it in GitHub Desktop.
nginx zoneminder config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| listen 80 default_server; | |
| server_name _; | |
| root /home/kjohnson/updated-console/web; | |
| index index.php; | |
| location ~* \.(?:jpg|jpeg|png|gif|ico|css|js)$ { | |
| expires 2d; | |
| add_header Pragma public; | |
| add_header Cache-Control "public"; | |
| } | |
| location / { | |
| try_files $uri $uri/ /index.php?$args; | |
| } | |
| location ~ \.php$ { | |
| try_files $uri =404; | |
| include /etc/nginx/fastcgi_params; | |
| fastcgi_index index.php; | |
| fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
| fastcgi_pass unix:/run/php/php7.0-fpm.sock; | |
| } | |
| location /cgi-bin/nph-zms { | |
| include fastcgi_params; | |
| fastcgi_param SCRIPT_FILENAME /usr/lib/cgi-bin/nph-zms; | |
| fastcgi_pass unix:/var/run/fcgiwrap.socket; | |
| } | |
| location /api/ { | |
| rewrite ^/api(.+)$ /api/index.php?p=$1 last; | |
| } | |
| } |
Author
kylejohnson
commented
Aug 7, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment