1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/snipeit_ynh.git synced 2024-09-03 20:26:16 +02:00
snipeit_ynh/conf/nginx.conf
eric_G eb59d1b6ba
Testing (#41)
* set relative path to keep option

* Auto-update README

* Manifest v2 and upgrade to v6.1.0 (#34)

* convert to v2

* cleanup and example_ynh

* Update

* Update

* Auto-update README

* Update tests.toml

---------

Co-authored-by: yunohost-bot <yunohost@yunohost.org>

* Auto-update README

* cleaning

* Auto-update README

* cleaning

* Auto-update README

* fix linter

* Auto-update README

* cleaning

* Update backup

* Update manifest.toml

* Update snipeit.env

* Update manifest.toml

* Revert "Update manifest.toml"

This reverts commit 2ece2825a5.

* Upgrade to v6.3.0 (#39)

* Upgrade to v6.3.0

* Auto-update README

* Upgrade to v6.3.1

* Auto-update README

* Mail (#37)

* Update snipeit.env

* Update manifest.toml

* Update manifest.toml

* fix

* Update tests.toml

* cleaning

* Auto-update README

* Update change_url

---------

Co-authored-by: yunohost-bot <yunohost@yunohost.org>

* Auto-update README

* fix

* add php

---------

Co-authored-by: yunohost-bot <yunohost@yunohost.org>
Co-authored-by: Tagada <36127788+Tagadda@users.noreply.github.com>
Co-authored-by: YunoHost Bot <yunohost-bot@users.noreply.github.com>
Co-authored-by: OniriCorpe <oniricorpe@disroot.org>
2024-02-29 16:09:48 +01:00

30 lines
791 B
Nginx Configuration File

#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location ^~ __PATH__/ {
# Path to source
alias __INSTALL_DIR__/public/;
index index.php;
# Common parameter to increase upload size limit in conjunction with dedicated php-fpm file
client_max_body_size 50M;
try_files $uri $uri/ @snipe;
location ~ \.php {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.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 SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
}
location @snipe {
rewrite /(.*)$ /index.php?/$1 last;
}