1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/framagames_ynh.git synced 2024-09-03 18:36:28 +02:00
framagames_ynh/conf/nginx.conf

24 lines
639 B
Nginx Configuration File
Raw Normal View History

2015-06-18 23:40:52 +02:00
location PATHTOCHANGE {
2016-12-24 15:15:59 +01:00
alias ALIASTOCHANGE;
2015-06-18 23:40:52 +02:00
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
2016-12-24 15:15:59 +01:00
client_max_body_size 10G;
2015-06-18 23:40:52 +02:00
index index.php index.html;
try_files $uri $uri/ index.php;
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_pass unix:/var/run/php5-fpm-NAMETOCHANGE.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param REMOTE_USER $remote_user;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $request_filename;
}
include conf.d/yunohost_panel.conf.inc;
}