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
  1. Cloudron Forum
  2. Translate
  3. How to create API key?

How to create API key?

Scheduled Pinned Locked Moved Solved Translate
6 Posts 5 Posters 1.2k Views 6 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • nichu42N Offline
      nichu42N Offline
      nichu42
      wrote on last edited by
      #1

      OK, let's try this 🙂

      I have installed LT. The web frontend works out of the box.
      Now I'd like to create an API key in order to use LT on my Mastodon instance.

      It seems this is done through the command line interface with

      ltmanage keys add
      

      However, ltmanage is nowhere to be found.
      Does anyone know how to complete this task?

      Matrix: @nichu42:blueplanet.social

      jdaviescoatesJ 1 Reply Last reply
      1
      • nichu42N nichu42

        OK, let's try this 🙂

        I have installed LT. The web frontend works out of the box.
        Now I'd like to create an API key in order to use LT on my Mastodon instance.

        It seems this is done through the command line interface with

        ltmanage keys add
        

        However, ltmanage is nowhere to be found.
        Does anyone know how to complete this task?

        jdaviescoatesJ Offline
        jdaviescoatesJ Offline
        jdaviescoates
        wrote on last edited by
        #2

        @nichu42 said in How to create API key?:

        Now I'd like to create an API key in order to use LT on my Mastodon instance.

        I came here to ask exactly this! 🙂

        I use Cloudron with Gandi & Hetzner

        1 Reply Last reply
        1
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #3

          @jdaviescoates @nichu42 I had to remove proxy auth to make API keys work well. So, please reinstall the app.

          After that, follow https://docs.cloudron.io/apps/libretranslate/#create-key

          nichu42N M 2 Replies Last reply
          2
          • girishG girish

            @jdaviescoates @nichu42 I had to remove proxy auth to make API keys work well. So, please reinstall the app.

            After that, follow https://docs.cloudron.io/apps/libretranslate/#create-key

            nichu42N Offline
            nichu42N Offline
            nichu42
            wrote on last edited by
            #4

            That worked well, thanks @girish!

            The only issue I'm having that LT seems to be quite slow in sending a response (also checked with curl).
            Mastodon returns a 503 Remote data could not be fetched on some toots. Others work. 🤔

            Matrix: @nichu42:blueplanet.social

            1 Reply Last reply
            1
            • girishG girish

              @jdaviescoates @nichu42 I had to remove proxy auth to make API keys work well. So, please reinstall the app.

              After that, follow https://docs.cloudron.io/apps/libretranslate/#create-key

              M Offline
              M Offline
              mononym
              wrote on last edited by
              #5

              Hello @girish

              When I run the command su - cloudron -c 'ltmanage keys --api-keys-db-path /app/data/db/api_keys.db add 120' in the web terminal of LibreTranslate I get the error -bash: line 1: ltmanage: command not found. Same when doing su - cloudron alone first. A ltmanage keys alone encounters write permission errors.

              1 Reply Last reply
              1
              • nebulonN Offline
                nebulonN Offline
                nebulon
                Staff
                wrote on last edited by
                #6

                Ah thanks for the hint, the latest package uses virtual env now, so we had to update the docs to initialize the python venv with source /app/code/.venv/bin/activate.

                The docs are now fixed https://docs.cloudron.io/apps/libretranslate/

                1 Reply Last reply
                3
                • nebulonN nebulon marked this topic as a question on
                • nebulonN nebulon has marked this topic as solved on
                • J joseph forked this topic on
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                  • Login

                  • Don't have an account? Register

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