Created
February 8, 2018 23:02
-
-
Save giuseppeM99/797e129c1afb8ce7ad91d6f4734b50a4 to your computer and use it in GitHub Desktop.
PWRTelegram NGINX Config
This file contains 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
#NGINX PWRTelegram Config | |
#Author: Giuseppe Marino [@giuseppeM99] | |
#Author Docker: Michael [@lilmayyo] | |
#Docker url: https://hub.docker.com/r/houna/pwrt/ | |
upstream pwr { | |
server unix:/var/run/php/php7.1-fpm.sock; | |
} | |
server { | |
listen 80; | |
listen [::]:80; | |
root /home/pwrtelegram/pwrtelegram/api; | |
server_name server_name api.* deepapi.* storage.* deepstorage.*; | |
location / { | |
try_files $uri /index.php?$args; | |
} | |
access_log /home/pwrtelegram/access.log; | |
location ~ \index.php$ { | |
include snippets/fastcgi-php.conf; | |
fastcgi_read_timeout 1500; | |
fastcgi_split_path_info ^(.+\.php)(/.+)$; | |
fastcgi_pass pwr; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment