Need help with using Vikunja with SWAG on Unraid

Hi,

I’m trying to get this up and running on my Unraid server, but I’m having issues. I usually follow youtube tutorials to help me get apps up and running, but there doesn’t seem to be any for using this app on Unraid. Here are the problems I’m facing:

I can access vikunja.mydomain.com, but I am unable to log in or register an account due to: Request failed with status code 405

I can access Vikunja directly through the IP and port of the container, however, it takes a while to load an eventually this error pops up:
An error occurred:
AxiosError: Network Error

Please check if the api url is correct.

The API URL it gives me is https://vikunja.mydomain.com/api/v1 which redirects me to https://vikunja.mydomain.xyz/login

When I go to http://myip:3456/api/v1/info, it seems to be working, it gives me the version with a lot of other info

This is what I’m using for my SWAG:

server {
    listen 443 ssl;
    listen [::]:443 ssl;

    server_name vikunja.*;

    include /config/nginx/ssl.conf;

    client_max_body_size 0;


    location / {

        include /config/nginx/proxy.conf;
        include /config/nginx/resolver.conf;
        set $upstream_app vikunja;
        set $upstream_port 80;
        set $upstream_proto http;
        proxy_pass $upstream_proto://$upstream_app:$upstream_port;

    }
}

Any help will be much appreciated!

I can now access it through the IP and create an account to use it, but I am unable to connect to it via the domain name. When I go to the domain it says “{“message”:“Not Found”}”. This is what I’m using for the new SWAG conf file:

server {
    listen 443 ssl;
    listen [::]:443 ssl;

    server_name vikunja.*;

    include /config/nginx/ssl.conf;

    client_max_body_size 0;


    location / {
        include /config/nginx/proxy.conf;
        include /config/nginx/resolver.conf;
        set $upstream_app serverip;
        set $upstream_port 3456;
        set $upstream_proto http;
        proxy_pass $upstream_proto://$upstream_app:$upstream_port;
    }
}

I can access the API through the IP and through the domain
http://myip:3456/api/v1/info
https://vikunja.example.xyz/api/v1/info

SOLVED!

server {
    listen 443 ssl;
    listen [::]:443 ssl;

    server_name vikunja.*;

    include /config/nginx/ssl.conf;

    client_max_body_size 0;

    # enable for Authelia
   # include /config/nginx/authelia-server.conf;

    location / {
        # enable for Authelia
        #include /config/nginx/authelia-location.conf;

        include /config/nginx/proxy.conf;
        include /config/nginx/resolver.conf;
        set $upstream_app vikunja;
        set $upstream_port 80;
        set $upstream_proto http;
        proxy_pass $upstream_proto://$upstream_app:$upstream_port;

       # root   /;
       # try_files $uri $uri/ /;
       # index  index.html index.htm;
        
    }
    
    location ~* ^/(api|dav|\.well-known)/ {
        include /config/nginx/proxy.conf;
        include /config/nginx/resolver.conf;
        set $api_app  vikunja-api;
        set $api_port 3456;
        set $api_proto http;
        proxy_pass $api_proto://$api_app:$api_port;
        client_max_body_size 20M;
    }
}

1 Like