diff --git a/ALL_README.md b/ALL_README.md index a01b345..4ed64dd 100644 --- a/ALL_README.md +++ b/ALL_README.md @@ -1,7 +1,9 @@ # All available README files by language - [Read the README in English](README.md) +- [Lea el README en español](README_es.md) - [Irakurri README euskaraz](README_eu.md) - [Lire le README en français](README_fr.md) - [Le o README en galego](README_gl.md) +- [Baca README dalam bahasa bahasa Indonesia](README_id.md) - [阅读中文(简体)的 README](README_zh_Hans.md) diff --git a/README.md b/README.md index ad1a9b4..0afcd44 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ It shall NOT be edited by hand. # Cors Proxy for YunoHost -[![Integration level](https://dash.yunohost.org/integration/cac-proxy.svg)](https://dash.yunohost.org/appci/app/cac-proxy) ![Working status](https://ci-apps.yunohost.org/ci/badges/cac-proxy.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/cac-proxy.maintain.svg) +[![Integration level](https://dash.yunohost.org/integration/cac-proxy.svg)](https://ci-apps.yunohost.org/ci/apps/cac-proxy/) ![Working status](https://ci-apps.yunohost.org/ci/badges/cac-proxy.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/cac-proxy.maintain.svg) [![Install Cors Proxy with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=cac-proxy) @@ -27,7 +27,7 @@ With Cookie Aware Cors Proxy, you can call a website not supporting CORS from yo - Two engines: a lightweight and one based on chrome to support websites running javascript -**Shipped version:** 1.2.1~ynh2 +**Shipped version:** 1.2.1~ynh4 ## Screenshots diff --git a/README_es.md b/README_es.md new file mode 100644 index 0000000..7bdb017 --- /dev/null +++ b/README_es.md @@ -0,0 +1,54 @@ + + +# Cors Proxy para Yunohost + +[![Nivel de integración](https://dash.yunohost.org/integration/cac-proxy.svg)](https://ci-apps.yunohost.org/ci/apps/cac-proxy/) ![Estado funcional](https://ci-apps.yunohost.org/ci/badges/cac-proxy.status.svg) ![Estado En Mantención](https://ci-apps.yunohost.org/ci/badges/cac-proxy.maintain.svg) + +[![Instalar Cors Proxy con Yunhost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=cac-proxy) + +*[Leer este README en otros idiomas.](./ALL_README.md)* + +> *Este paquete le permite instalarCors Proxy rapidamente y simplement en un servidor YunoHost.* +> *Si no tiene YunoHost, visita [the guide](https://yunohost.org/install) para aprender como instalarla.* + +## Descripción general + +Cookie Aware Cors Proxy is an http proxy letting the browser itself manages cookies and redirects. +Most other cores proxy directly respond to redirects, and doesn't send cookies, thus breaking the flow. + +With Cookie Aware Cors Proxy, you can call a website not supporting CORS from your own web application, and get the html result. + +### Features +- Translates cookies and redirect locations from the target website to have the browser continue to call the proxy and not directly the website +- Extensive and dynamic support for log and debug information +- Two engines: a lightweight and one based on chrome to support websites running javascript + + +**Versión actual:** 1.2.1~ynh4 + +## Capturas + +![Captura de Cors Proxy](./doc/screenshots/fnac-logs.png) + +## Documentaciones y recursos + +- Repositorio del código fuente oficial de la aplicación : +- Catálogo YunoHost: +- Reportar un error: + +## Información para desarrolladores + +Por favor enviar sus correcciones a la [`branch testing`](https://github.com/YunoHost-Apps/cac-proxy_ynh/tree/testing + +Para probar la rama `testing`, sigue asÍ: + +```bash +sudo yunohost app install https://github.com/YunoHost-Apps/cac-proxy_ynh/tree/testing --debug +o +sudo yunohost app upgrade cac-proxy -u https://github.com/YunoHost-Apps/cac-proxy_ynh/tree/testing --debug +``` + +**Mas informaciones sobre el empaquetado de aplicaciones:** diff --git a/README_eu.md b/README_eu.md index 6710597..13eade3 100644 --- a/README_eu.md +++ b/README_eu.md @@ -5,7 +5,7 @@ EZ editatu eskuz. # Cors Proxy YunoHost-erako -[![Integrazio maila](https://dash.yunohost.org/integration/cac-proxy.svg)](https://dash.yunohost.org/appci/app/cac-proxy) ![Funtzionamendu egoera](https://ci-apps.yunohost.org/ci/badges/cac-proxy.status.svg) ![Mantentze egoera](https://ci-apps.yunohost.org/ci/badges/cac-proxy.maintain.svg) +[![Integrazio maila](https://dash.yunohost.org/integration/cac-proxy.svg)](https://ci-apps.yunohost.org/ci/apps/cac-proxy/) ![Funtzionamendu egoera](https://ci-apps.yunohost.org/ci/badges/cac-proxy.status.svg) ![Mantentze egoera](https://ci-apps.yunohost.org/ci/badges/cac-proxy.maintain.svg) [![Instalatu Cors Proxy YunoHost-ekin](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=cac-proxy) @@ -27,7 +27,7 @@ With Cookie Aware Cors Proxy, you can call a website not supporting CORS from yo - Two engines: a lightweight and one based on chrome to support websites running javascript -**Paketatutako bertsioa:** 1.2.1~ynh2 +**Paketatutako bertsioa:** 1.2.1~ynh4 ## Pantaila-argazkiak diff --git a/README_fr.md b/README_fr.md index 70c9cf6..716f3dc 100644 --- a/README_fr.md +++ b/README_fr.md @@ -5,7 +5,7 @@ Il NE doit PAS être modifié à la main. # Cors Proxy pour YunoHost -[![Niveau d’intégration](https://dash.yunohost.org/integration/cac-proxy.svg)](https://dash.yunohost.org/appci/app/cac-proxy) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/cac-proxy.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/cac-proxy.maintain.svg) +[![Niveau d’intégration](https://dash.yunohost.org/integration/cac-proxy.svg)](https://ci-apps.yunohost.org/ci/apps/cac-proxy/) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/cac-proxy.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/cac-proxy.maintain.svg) [![Installer Cors Proxy avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=cac-proxy) @@ -27,7 +27,7 @@ With Cookie Aware Cors Proxy, you can call a website not supporting CORS from yo - Two engines: a lightweight and one based on chrome to support websites running javascript -**Version incluse :** 1.2.1~ynh2 +**Version incluse :** 1.2.1~ynh4 ## Captures d’écran diff --git a/README_gl.md b/README_gl.md index 9d2283d..80d0e7c 100644 --- a/README_gl.md +++ b/README_gl.md @@ -5,7 +5,7 @@ NON debe editarse manualmente. # Cors Proxy para YunoHost -[![Nivel de integración](https://dash.yunohost.org/integration/cac-proxy.svg)](https://dash.yunohost.org/appci/app/cac-proxy) ![Estado de funcionamento](https://ci-apps.yunohost.org/ci/badges/cac-proxy.status.svg) ![Estado de mantemento](https://ci-apps.yunohost.org/ci/badges/cac-proxy.maintain.svg) +[![Nivel de integración](https://dash.yunohost.org/integration/cac-proxy.svg)](https://ci-apps.yunohost.org/ci/apps/cac-proxy/) ![Estado de funcionamento](https://ci-apps.yunohost.org/ci/badges/cac-proxy.status.svg) ![Estado de mantemento](https://ci-apps.yunohost.org/ci/badges/cac-proxy.maintain.svg) [![Instalar Cors Proxy con YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=cac-proxy) @@ -27,7 +27,7 @@ With Cookie Aware Cors Proxy, you can call a website not supporting CORS from yo - Two engines: a lightweight and one based on chrome to support websites running javascript -**Versión proporcionada:** 1.2.1~ynh2 +**Versión proporcionada:** 1.2.1~ynh4 ## Capturas de pantalla diff --git a/README_id.md b/README_id.md new file mode 100644 index 0000000..4f04ffc --- /dev/null +++ b/README_id.md @@ -0,0 +1,54 @@ + + +# Cors Proxy untuk YunoHost + +[![Tingkat integrasi](https://dash.yunohost.org/integration/cac-proxy.svg)](https://ci-apps.yunohost.org/ci/apps/cac-proxy/) ![Status kerja](https://ci-apps.yunohost.org/ci/badges/cac-proxy.status.svg) ![Status pemeliharaan](https://ci-apps.yunohost.org/ci/badges/cac-proxy.maintain.svg) + +[![Pasang Cors Proxy dengan YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=cac-proxy) + +*[Baca README ini dengan bahasa yang lain.](./ALL_README.md)* + +> *Paket ini memperbolehkan Anda untuk memasang Cors Proxy secara cepat dan mudah pada server YunoHost.* +> *Bila Anda tidak mempunyai YunoHost, silakan berkonsultasi dengan [panduan](https://yunohost.org/install) untuk mempelajari bagaimana untuk memasangnya.* + +## Ringkasan + +Cookie Aware Cors Proxy is an http proxy letting the browser itself manages cookies and redirects. +Most other cores proxy directly respond to redirects, and doesn't send cookies, thus breaking the flow. + +With Cookie Aware Cors Proxy, you can call a website not supporting CORS from your own web application, and get the html result. + +### Features +- Translates cookies and redirect locations from the target website to have the browser continue to call the proxy and not directly the website +- Extensive and dynamic support for log and debug information +- Two engines: a lightweight and one based on chrome to support websites running javascript + + +**Versi terkirim:** 1.2.1~ynh4 + +## Tangkapan Layar + +![Tangkapan Layar pada Cors Proxy](./doc/screenshots/fnac-logs.png) + +## Dokumentasi dan sumber daya + +- Repositori kode aplikasi hulu: +- Gudang YunoHost: +- Laporkan bug: + +## Info developer + +Silakan kirim pull request ke [`testing` branch](https://github.com/YunoHost-Apps/cac-proxy_ynh/tree/testing). + +Untuk mencoba branch `testing`, silakan dilanjutkan seperti: + +```bash +sudo yunohost app install https://github.com/YunoHost-Apps/cac-proxy_ynh/tree/testing --debug +atau +sudo yunohost app upgrade cac-proxy -u https://github.com/YunoHost-Apps/cac-proxy_ynh/tree/testing --debug +``` + +**Info lebih lanjut mengenai pemaketan aplikasi:** diff --git a/README_zh_Hans.md b/README_zh_Hans.md index 058460c..f7a182b 100644 --- a/README_zh_Hans.md +++ b/README_zh_Hans.md @@ -3,9 +3,9 @@ 请勿手动编辑。 --> -# YunoHost 的 Cors Proxy +# YunoHost 上的 Cors Proxy -[![集成程度](https://dash.yunohost.org/integration/cac-proxy.svg)](https://dash.yunohost.org/appci/app/cac-proxy) ![工作状态](https://ci-apps.yunohost.org/ci/badges/cac-proxy.status.svg) ![维护状态](https://ci-apps.yunohost.org/ci/badges/cac-proxy.maintain.svg) +[![集成程度](https://dash.yunohost.org/integration/cac-proxy.svg)](https://ci-apps.yunohost.org/ci/apps/cac-proxy/) ![工作状态](https://ci-apps.yunohost.org/ci/badges/cac-proxy.status.svg) ![维护状态](https://ci-apps.yunohost.org/ci/badges/cac-proxy.maintain.svg) [![使用 YunoHost 安装 Cors Proxy](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=cac-proxy) @@ -27,7 +27,7 @@ With Cookie Aware Cors Proxy, you can call a website not supporting CORS from yo - Two engines: a lightweight and one based on chrome to support websites running javascript -**分发版本:** 1.2.1~ynh2 +**分发版本:** 1.2.1~ynh4 ## 截图 diff --git a/manifest.toml b/manifest.toml index a19d95f..ada831c 100644 --- a/manifest.toml +++ b/manifest.toml @@ -7,7 +7,7 @@ name = "Cors Proxy" description.en = "An advanced https proxy allowing you to call other websites from your own web application." description.fr = "Un proxy https avancé vous permettant d'appeler d'autres sites depuis votre propre application web." -version = "1.2.1~ynh2" +version = "1.2.1~ynh4" maintainers = ["Gerard Collin"] @@ -16,7 +16,7 @@ license = "MIT" code = "https://github.com/gcollin/cookie-aware-cors-proxy" [integration] -yunohost = ">= 11.0.0" +yunohost = ">= 11.1.9" architectures = ["amd64"] multi_instance = false ldap = "not_relevant" diff --git a/scripts/remove b/scripts/remove index 0a968d0..05abe99 100755 --- a/scripts/remove +++ b/scripts/remove @@ -28,8 +28,11 @@ ynh_remove_systemd_config # Remove the app-specific logrotate config ynh_remove_logrotate -# Remove the log files -ynh_secure_remove --file="/var/log/$app" + + + + + _remove_restart_script_and_sudoers diff --git a/scripts/restore b/scripts/restore index e219e8c..3c3cd89 100755 --- a/scripts/restore +++ b/scripts/restore @@ -29,9 +29,6 @@ if [ -n "$public_key" ]; then _install_restart_script_and_sudoers fi -mkdir --parents /var/log/$app -chown $app:adm /var/log/$app - #================================================= # SPECIFIC RESTORATION #================================================= @@ -52,6 +49,8 @@ ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" ynh_restore_file --origin_path="/etc/logrotate.d/$app" +mkdir --parents /var/log/$app + ynh_restore_file --origin_path="/etc/systemd/system/$app.service" systemctl enable $app.service --quiet yunohost service add $app --description="A Cors proxy letting the browser manages cookies and redirects." --log="/var/log/$app/$app.log" diff --git a/scripts/upgrade b/scripts/upgrade index 65500f2..b8a19ff 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -50,7 +50,7 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]; then ynh_script_progression --message="Upgrading source files..." --weight=6 # Download, check integrity, uncompress and patch the source from amd64.src - ynh_setup_source --dest_dir="$install_dir/package" + ynh_setup_source --dest_dir="$install_dir/package" --full_replace=1 fi chmod -R o-rwx "$install_dir"