Skip to content

Instantly share code, notes, and snippets.

@giuseppeM99
Created February 8, 2018 23:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save giuseppeM99/797e129c1afb8ce7ad91d6f4734b50a4 to your computer and use it in GitHub Desktop.
Save giuseppeM99/797e129c1afb8ce7ad91d6f4734b50a4 to your computer and use it in GitHub Desktop.
PWRTelegram NGINX Config
#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