Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
ocelotslothO

ocelotsloth

@ocelotsloth
About
Posts
7
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Authentication support?
    ocelotslothO ocelotsloth

    First, this application works great from my testing.

    Is some kind of authentication in the roadmap for this app? For my use case I really can't have it open for anybody to create or join rooms. Just limiting who can create rooms would get me 80% of the way--requiring a secret to join an in-progress call would be even better.

    Thanks!

    Jitsi

  • Python hacker with Canon API experience needed for photo project
    ocelotslothO ocelotsloth

    I don't have this camera so cannot test...but perhaps Entangle can get you there without writing custom software?

    https://entangle-photo.org/

    I don't see that camera on the libgphoto2 supported list though so that software might not work.

    Off-topic

  • Jupyter Notebook Support
    ocelotslothO ocelotsloth

    @girish ok merge request here: https://git.cloudron.io/cloudron/gitea-app/-/merge_requests/6

    This app install is running that code: https://testgitea.markstenglein.com/ocelotsloth/test/src/branch/master/test.ipynb

    Gitea

  • Jupyter Notebook Support
    ocelotslothO ocelotsloth

    @girish looks like I need permissions to create at least 1 repository in order to do that.

    If you can make that change for me I'll work on this tomorrow night.

    Gitea

  • Jupyter Notebook Support
    ocelotslothO ocelotsloth

    I'd like to have jupyter notebook support baked into the container image shipped by Cloudron. I can get it working as-is, but I'd really prefer the jupyter python code be shipped in the read-only filesystem and also updated whenever the gitea app is updated.

    Gitea has some good docs on how to do this:

    https://docs.gitea.io/en-us/external-renderers/#installing-external-binaries

    I was able to get this working on my existing instance by:

    mkdir /app/data/python_packages
    cd /app/data/python_packages
    python3 -m virtualenv .
    source bin/activate
    pip3 install jupyter
    

    And then adding the following to my /app/data/app.ini file:

    [markup.jupyter]
    ENABLED = true
    FILE_EXTENSIONS = .ipynb
    RENDER_COMMAND = "/app/data/python_packages/bin/jupyter nbconvert --stdin --stdout --to html --template basic"
    IS_INPUT_FILE = false
    
    [markup.sanitizer.jupyter.img]
    ALLOW_DATA_URI_IMAGES = true
    

    I think all you'd have to add to the Dockerfile is something like:

    RUN pip3 install jupyter
    

    And then make the changes to the app.ini.template (without the path prefix on the render command, since it would be in the path now).


    I'd be happy to submit and test a pull request against the repository if that would be easiest.

    While at it...could probably also add pandoc so that we can add our own custom markup types for anything pandoc supports.

    Gitea

  • CORS/Timeout error when searching for public rooms
    ocelotslothO ocelotsloth

    @nebulon said in CORS/Timeout error when searching for public rooms:

    have you configured the federation records via the domain settings? https://docs.cloudron.io/domains/#matrix-server-location

    I have, yep. Testing the /.well-known/matrix/server path yields the correct domain as well.

    Matrix (Synapse/Element)

  • CORS/Timeout error when searching for public rooms
    ocelotslothO ocelotsloth

    I put this into its own thread since it seems like a different error than the other similar thread here: https://forum.cloudron.io/topic/5071/explore-public-rooms-in-matrix-fails/1

    When searching for other public rooms I get this error after about a 10 second timeout period:

    7ae7afa8-7f40-47b1-8f3c-dfe652403388-image.png

    It seems like this is probably not a CORS issue. If I try to access that URL without a valid access token I get this response:

    ~
    ❯ http get 'https://matrix.markstenglein.com/_matrix/client/r0/publicRooms?server=matrix.org'
    HTTP/1.1 401 Unauthorized
    Access-Control-Allow-Headers: X-Requested-With, Content-Type, Authorization, Date
    Access-Control-Allow-Methods: GET, HEAD, POST, PUT, DELETE, OPTIONS
    Access-Control-Allow-Origin: *
    Cache-Control: no-cache, no-store, must-revalidate
    Connection: keep-alive
    Content-Type: application/json
    Date: Sat, 28 Aug 2021 16:55:05 GMT
    Server: nginx
    Transfer-Encoding: chunked
    
    {
        "errcode": "M_MISSING_TOKEN",
        "error": "Missing access token"
    }
    

    If instead I make the same request with my authorization token I get a 502 Bad Gateway error.

    ~
    ❯ http get 'https://matrix.markstenglein.com/_matrix/client/r0/publicRooms?server=matrix.org' 'Authorization: Bearer TOKEN_REMOVED_FROM_THIS_POST'
    HTTP/1.1 502 Bad Gateway
    Connection: keep-alive
    Content-Length: 1859
    Content-Type: text/html
    Date: Sat, 28 Aug 2021 16:56:48 GMT
    ETag: "61142a4e-743"
    Server: nginx
    
    <!DOCTYPE html>
    <html>
    <head>
        <meta charset="utf-8" />
        <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height" />
    
        <title> Cloudron App Error </title>
    
        <!-- Use static style as we can't include local stylesheets -->
        <style>
    
            html {
                height: 100%;
                width: 100%;
                padding: 0;
            }
    
            body {
                background-color: white;
                padding: 0;
                margin: 0;
                height: 100%;
                width: 100%;
                text-align: center;
                font-family: "Roboto","Helvetica Neue",Helvetica,Arial,sans-serif;
                line-height: 1.846;
            }
    
            .content {
                display: flex;
                width: 100%;
                height: 100%;
                flex-direction: column;
                justify-content: center;
            }
    
            footer {
                background-color: #EFEFEF;
                bottom: 0;
                width: 100%;
                color: #555;
                font-size: 12px;
                text-align: center;
                padding: 5px;
                z-index: 1000;
                position: fixed;
                opacity: .5;
                transition: all .25s;
            }
    
            footer:hover {
                opacity: 1;
            }
    
            a {
                color: #2196f3;
                text-decoration: none;
                background-color: transparent;
            }
    
            a:hover {
                color: #0a6ebd;
                text-decoration: underline;
            }
    
            </style>
    
    </head>
    
    <body>
    
    <div class="content">
        <h1>&#x231B;</h1>
        <p>This app is currently not responding. Please try refreshing the page in a few minutes.</p>
    </div>
    
    <footer>
        <span class="text-muted"><a href="https://cloudron.io" target="_blank">Cloudron</a></span>
    </footer>
    
    </body>
    </html>
    

    Seems like this is either the underlying matrix server taking too long to perform federation or some other problem. Looking in the application logs all I see are these entries:

    Aug 28 12:27:10 ==> Fixing permissions
    Aug 28 12:27:10 ==> Starting synapse
    

    I don't see any other logs to try and diagnose what the issue could be.

    Any ideas?

    Matrix (Synapse/Element)
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search