Git Product home page Git Product logo

vctr's People

Contributors

riseofrice avatar zekrotja avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

vctr's Issues

Login Error Message

Add a login error message when entering a wrong username-password combination.

API key implementation

Implementation of API keys to access the REST API via those.

This might also be bound to a new permission CREATE_API_TOKEN.

Cannot create new user

I try to create a user with the name test and everytime I click on Create I get an unexpected error. If I look into the console, I get an error 400.

My docker-compose file:

version: "3"

services:
  x0-db:
    image: "postgres"
    container_name: "x0-db"
    restart: always
    expose:
      - "5432"
    volumes:
      - "./data/db:/var/lib/postgresql/data"
    environment:
      POSTGRES_USER: "vctr"
      POSTGRES_PASSWORD: "nope"
    networks:
      - "x0"

  x0-redis:
    image: "redis"
    container_name: "x0-redis"
    restart: always
    expose: 
      - "6379"
    networks:
      - "x0"

  x0-gw:
    build:
      context: './src/'
      dockerfile: './Gateway/Dockerfile'
    image: "zekro/vctr-gw"
    restart: always
    expose: 
      - "80"
    environment:
      VCTR_CONNECTIONSTRINGS__POSTGRES: "Host=x0-db;Database=vctr;Username=vctr;Password=nope"
      VCTR_INITIALIZATION__ROOTUSERNAME: "nope"
      VCTR_INITIALIZATION__ROOTUSERPASSWORD: "nope"
      VCTR_CACHING__DURATION: "30.00:00:00"
      VCTR_CACHING__REDIS__SERVERS: "x0-redis:6379"
      VCTR_CACHING__REDIS__DATABASE: 2
      VCTR_ROUTING__ROOT: "https://x0.tf"
      VCTR_ROUTING__NOTFOUND: "/ui/notfound"
      VCTR_ROUTING__PASSWORD: "/ui/password"
    labels:
      - "traefik.enable=true"
      - "traefik.docker.network=web"
      - "traefik.http.routers.x0-gw.rule=Host(`x0.tf`)"
      - "traefik.http.routers.x0-gw.entrypoints=web-secured"
      - "traefik.http.routers.x0-gw.tls"
    networks: 
      - "x0"
      - "web"  

  x0-fe:
    build:
      context: './src/'
      dockerfile: './WebApp/Dockerfile'
    image: "zekro/vctr-fe"
    restart: always
    expose: 
      - "80"
    labels:
      - "traefik.enable=true"
      - "traefik.docker.network=web"
      - "traefik.http.routers.x0-fe.rule=Host(`x0.tf`) && PathPrefix(`/ui`)"
      - "traefik.http.routers.x0-fe.entrypoints=web-secured"
      - "traefik.http.routers.x0-fe.tls"
      - "traefik.http.routers.x0-fe.middlewares=x0-fe-stripprefix"
      - "traefik.http.middlewares.x0-fe-stripprefix.stripprefix.prefixes=/ui/"
    networks: 
      - "x0"
      - "web"  

networks:
  x0:
    driver: bridge
  web:
    external:
      name: web

`Unexpected Error` while trying to create a shortlink with query parameters

I think the title says it all. I checked the logs of the docker containers and the API response but I can't additional info for that error...
Is this just not supported, or are you planning on implementing it? The same error also occures random while creating shortlinks for seeminly no reason. Is there anything I can do to get a more detailed error msg?

"invalid destination url"

EN:
I tried to create an link via web UI, but it returned the error {"error":"invalid destination url"}.
I also tested to create an link via httpie (a tool like curl), but it had the same error (I used the documentation for that).
My request body was valid, but I don't know why it's happening.
I also found out, that another parameter in destination works.

DE:
Ich habe versucht einen Link über das Web UI zu erstellen, aber es hat mir den Fehler {"error":"invalid destination url"} zurück gegeben.
Ich habe es auch versucht über HTTPie (einem Werkzeug wie curl), aber habe dort den selben Fehler bekommen (ich habe die Dokumentation dafür genutzt).
Mein Request Body ist korrekt, aber ich weiß nicht warum es passiert.
Ich habe auch herausgefunden, dass wenn ich einen anderen Parameter bei destination/Ziel angebe, es funktioniert.

Request Body:

{
  "ident": "vipe",
  "enabled": true,
  "permanent_redirect": false,
  "total_access_limit": 0,
  "destination": "https://vipecity.de"
}

HTTPie Command:

https post s.*********.**/api/links Authorization:******************************** destination="https://vipecity.de" ident="vipe" -v

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.