mirror of
https://github.com/YunoHost-Apps/ifconfig-io_ynh.git
synced 2024-09-03 20:36:27 +02:00
commit
708eaeab27
6 changed files with 32 additions and 43 deletions
22
README.md
22
README.md
|
@ -5,7 +5,7 @@ It shall NOT be edited by hand.
|
|||
|
||||
# ifconfig-io for YunoHost
|
||||
|
||||
[](https://dash.yunohost.org/appci/app/ifconfig-io)  
|
||||
[](https://dash.yunohost.org/appci/app/ifconfig-io)  
|
||||
[](https://install-app.yunohost.org/?app=ifconfig-io)
|
||||
|
||||
*[Lire ce readme en français.](./README_fr.md)*
|
||||
|
@ -22,28 +22,28 @@ I used the gin framework as it does several things to ensure that there are no m
|
|||
Tested to handle 15,000 requests persecond on modest hardware with an average response time of 130ms.
|
||||
|
||||
|
||||
**Shipped version:** 2022.01.05~ynh1
|
||||
**Shipped version:** 2022.01.05~ynh2
|
||||
|
||||
**Demo:** https://ifconfig.io
|
||||
|
||||
## Documentation and resources
|
||||
|
||||
* Official app website: https://ifconfig.io/
|
||||
* Official user documentation: https://github.com/georgyo/ifconfig.io/
|
||||
* Official admin documentation: https://github.com/georgyo/ifconfig.io/
|
||||
* Upstream app code repository: https://github.com/georgyo/ifconfig.io/
|
||||
* YunoHost documentation for this app: https://yunohost.org/app_ifconfig-io
|
||||
* Report a bug: https://github.com/YunoHost-Apps/ifconfig-io_ynh/issues
|
||||
* Official app website: <https://ifconfig.io/>
|
||||
* Official user documentation: <https://github.com/georgyo/ifconfig.io/>
|
||||
* Official admin documentation: <https://github.com/georgyo/ifconfig.io/>
|
||||
* Upstream app code repository: <https://github.com/georgyo/ifconfig.io/>
|
||||
* YunoHost documentation for this app: <https://yunohost.org/app_ifconfig-io>
|
||||
* Report a bug: <https://github.com/YunoHost-Apps/ifconfig-io_ynh/issues>
|
||||
|
||||
## Developer info
|
||||
|
||||
Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/ifconfig-io_ynh/tree/testing).
|
||||
|
||||
To try the testing branch, please proceed like that.
|
||||
```
|
||||
|
||||
``` bash
|
||||
sudo yunohost app install https://github.com/YunoHost-Apps/ifconfig-io_ynh/tree/testing --debug
|
||||
or
|
||||
sudo yunohost app upgrade ifconfig-io -u https://github.com/YunoHost-Apps/ifconfig-io_ynh/tree/testing --debug
|
||||
```
|
||||
|
||||
**More info regarding app packaging:** https://yunohost.org/packaging_apps
|
||||
**More info regarding app packaging:** <https://yunohost.org/packaging_apps>
|
||||
|
|
28
README_fr.md
28
README_fr.md
|
@ -1,10 +1,14 @@
|
|||
<!--
|
||||
N.B.: This README was automatically generated by https://github.com/YunoHost/apps/tree/master/tools/README-generator
|
||||
It shall NOT be edited by hand.
|
||||
-->
|
||||
|
||||
# ifconfig-io pour YunoHost
|
||||
|
||||
[](https://dash.yunohost.org/appci/app/ifconfig-io)  
|
||||
[](https://dash.yunohost.org/appci/app/ifconfig-io)  
|
||||
[](https://install-app.yunohost.org/?app=ifconfig-io)
|
||||
|
||||
*[Read this readme in english.](./README.md)*
|
||||
*[Lire ce readme en français.](./README_fr.md)*
|
||||
|
||||
> *Ce package vous permet d'installer ifconfig-io rapidement et simplement sur un serveur YunoHost.
|
||||
Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l'installer et en profiter.*
|
||||
|
@ -18,28 +22,28 @@ I used the gin framework as it does several things to ensure that there are no m
|
|||
Tested to handle 15,000 requests persecond on modest hardware with an average response time of 130ms.
|
||||
|
||||
|
||||
**Version incluse :** 2022.01.05~ynh1
|
||||
**Version incluse :** 2022.01.05~ynh2
|
||||
|
||||
**Démo :** https://ifconfig.io
|
||||
|
||||
## Documentations et ressources
|
||||
|
||||
* Site officiel de l'app : https://ifconfig.io/
|
||||
* Documentation officielle utilisateur : https://github.com/georgyo/ifconfig.io/
|
||||
* Documentation officielle de l'admin : https://github.com/georgyo/ifconfig.io/
|
||||
* Dépôt de code officiel de l'app : https://github.com/georgyo/ifconfig.io/
|
||||
* Documentation YunoHost pour cette app : https://yunohost.org/app_ifconfig-io
|
||||
* Signaler un bug : https://github.com/YunoHost-Apps/ifconfig-io_ynh/issues
|
||||
* Site officiel de l'app : <https://ifconfig.io/>
|
||||
* Documentation officielle utilisateur : <https://github.com/georgyo/ifconfig.io/>
|
||||
* Documentation officielle de l'admin : <https://github.com/georgyo/ifconfig.io/>
|
||||
* Dépôt de code officiel de l'app : <https://github.com/georgyo/ifconfig.io/>
|
||||
* Documentation YunoHost pour cette app : <https://yunohost.org/app_ifconfig-io>
|
||||
* Signaler un bug : <https://github.com/YunoHost-Apps/ifconfig-io_ynh/issues>
|
||||
|
||||
## Informations pour les développeurs
|
||||
|
||||
Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/ifconfig-io_ynh/tree/testing).
|
||||
|
||||
Pour essayer la branche testing, procédez comme suit.
|
||||
```
|
||||
|
||||
``` bash
|
||||
sudo yunohost app install https://github.com/YunoHost-Apps/ifconfig-io_ynh/tree/testing --debug
|
||||
ou
|
||||
sudo yunohost app upgrade ifconfig-io -u https://github.com/YunoHost-Apps/ifconfig-io_ynh/tree/testing --debug
|
||||
```
|
||||
|
||||
**Plus d'infos sur le packaging d'applications :** https://yunohost.org/packaging_apps
|
||||
**Plus d'infos sur le packaging d'applications :** <https://yunohost.org/packaging_apps>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
setup_sub_dir=1
|
||||
setup_root=1
|
||||
setup_nourl=0
|
||||
setup_private=1
|
||||
setup_private=0
|
||||
setup_public=1
|
||||
upgrade=1
|
||||
# 2021.02.16~ynh1
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"description": {
|
||||
"en": "IP API service to get their public IP address."
|
||||
},
|
||||
"version": "2022.01.05~ynh1",
|
||||
"version": "2022.01.05~ynh2",
|
||||
"url": "https://github.com/georgyo/ifconfig.io/",
|
||||
"upstream": {
|
||||
"license": "MIT",
|
||||
|
@ -38,11 +38,6 @@
|
|||
"type": "path",
|
||||
"example": "/example",
|
||||
"default": "/example"
|
||||
},
|
||||
{
|
||||
"name": "is_public",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -25,7 +25,6 @@ ynh_abort_if_errors
|
|||
|
||||
domain=$YNH_APP_ARG_DOMAIN
|
||||
path_url=$YNH_APP_ARG_PATH
|
||||
is_public=$YNH_APP_ARG_IS_PUBLIC
|
||||
app=$YNH_APP_INSTANCE_NAME
|
||||
|
||||
#=================================================
|
||||
|
@ -101,9 +100,6 @@ ynh_add_nginx_config
|
|||
#=================================================
|
||||
ynh_script_progression --message="Installing..." --weight=5
|
||||
|
||||
export GOPATH=$HOME/go
|
||||
export GO111MODULE=on
|
||||
|
||||
pushd "$app_path"
|
||||
ynh_exec_warn_less go mod download
|
||||
ynh_exec_warn_less go build
|
||||
|
@ -150,12 +146,9 @@ ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$ap
|
|||
ynh_script_progression --message="Configuring permissions..." --weight=1
|
||||
|
||||
# Make app public if necessary
|
||||
if [ $is_public -eq 1 ]
|
||||
then
|
||||
# Everyone can access the app.
|
||||
# The "main" permission is automatically created before the install script.
|
||||
ynh_permission_update --permission="main" --add="visitors"
|
||||
fi
|
||||
# Everyone can access the app.
|
||||
# The "main" permission is automatically created before the install script.
|
||||
ynh_permission_update --permission="main" --add="visitors"
|
||||
|
||||
#=================================================
|
||||
# RELOAD NGINX
|
||||
|
|
|
@ -106,9 +106,6 @@ ynh_install_app_dependencies $pkg_dependencies
|
|||
#=================================================
|
||||
ynh_script_progression --message="Upgrading..." --weight=5
|
||||
|
||||
export GOPATH=$HOME/go
|
||||
export GO111MODULE=on
|
||||
|
||||
pushd "$app_path"
|
||||
ynh_exec_warn_less go mod download
|
||||
ynh_exec_warn_less go build
|
||||
|
|
Loading…
Add table
Reference in a new issue