1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/retroarch_ynh.git synced 2024-09-03 20:16:12 +02:00

Allow subdomain

This commit is contained in:
Krakinou 2021-05-13 21:28:15 +02:00
parent f1c79bbc08
commit cc97f25c98
4 changed files with 10 additions and 9 deletions

View file

@ -9,7 +9,7 @@
is_public=1 (PUBLIC|public=1|private=0)
; Checks
pkg_linter=1
setup_sub_dir=0 #Not supported in upstream app
setup_sub_dir=1
setup_root=1
setup_nourl=0
setup_private=1

View file

@ -1,8 +1,8 @@
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location / {
location __PATH__/ {
# Path to source
root __FINALPATH__/ ;
alias __FINALPATH__/ ;
# Force usage of https
if ($scheme = http) {
@ -11,5 +11,4 @@ location / {
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
}

View file

@ -25,12 +25,14 @@
{
"name": "domain",
"type": "domain",
"help": {
"en": "RetroArch requires its own subdomain",
"fr": "RetroArch nécessite son propre sous-domaine"
},
"example": "retroarch.example.com"
},
{
"name": "path",
"type": "path",
"example": "/retroarch",
"default": "/retroarch"
},
{
"name": "is_public",
"type": "boolean",

View file

@ -25,7 +25,7 @@ ynh_abort_if_errors
#=================================================
domain=$YNH_APP_ARG_DOMAIN
path_url="/"
path_url=$YNH_APP_ARG_PATH
is_public=$YNH_APP_ARG_IS_PUBLIC
app=$YNH_APP_INSTANCE_NAME