Code Monkey home page Code Monkey logo

redirect_ynh's Introduction

Redirect for YunoHost

Warning: This YunoHost app is still in development. Use it at your own risk!

This app allows to redirect one path in order to add it as a Yunohost app. For example, you can create a YunoHost application "MyApp" at "http://domain.tld/myapp/" which is actually pointing at "http://127.0.0.1:8080/app/". You can even add SSO to protect this application (but make sure that this application CANNOT be accessed by its port).

Usage

The main use of redirect_ynh is to create YunoHost apps out of Docker containers: https://github.com/scith/docker_container_ynh. For example, a container running with the option "-p 127.0.0.1:8080:80" could be redirected to "http://domain.tld/myapp/" with SSO.

IMPORTANT: the redirect.conf file might need to be updated according to your situation! WARNING: Many apps do not support being redirected to a different path due to relative links! This means that some apps being hosted for example on http://127.0.0.1:5050/app/ HAVE TO be redirected to http://domain.tld/app/ and NOT http://domain.tld/someotherapp/

Concrete example: the Odoo Docker container runs on http://127.0.0.1:8069/. You will not be able to redirect it to http://domain.tld/odoo/ ! You have to redirect it to the root, so for example http://odoo.domain.tld/

redirect_ynh's People

Contributors

scith avatar zehiro avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.