So you’d like to use openid-connect (oidc), especially keycloak (kc) in your Quasar app. There’s a package, @dsb-norge/vue-keycloak-js . I’d recommend you fork it and create your own version with the keycloak-js version that matches your Keycloak server. However it also works with just the version used in this git repository. The git repository is…
Read ArticleCategory: Entwicklung
Webentwicklungg, Programmieren, Software, Server… irgendwie alles was in den Bereich Computer und Entwicklung fällt
Anything regarding web-development
vue dev server with nginx
The Nginx conf is the same for any sock-js site. It can be used for Vue and Angular and Svelte, not sure about React but I’d guess it uses sock-js as well. My dev domain is qxdsladmin.local in this example. /etc/nginx/conf.d/qxdsladmin.local.conf
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
server { listen 80; listen [::]:80; server_name qxdsladmin.local; root /home/darko/WebProjects/qxdsladmin/public/; index index.html; error_log /var/log/nginx/qxdsladmin.local.error; location / { proxy_pass http://localhost:4201; proxy_read_timeout 30; proxy_connect_timeout 30; proxy_redirect off; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } location /sockjs-node/ { proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; rewrite ^/(.*)$ /$1 break; proxy_set_header Host localhost; proxy_pass http://localhost:4201/; } location ~ ^/api/v1/.* { proxy_pass http://unix:/tmp/qxdsl-proxy.sock; proxy_read_timeout 30; proxy_connect_timeout 30; proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } } |
This location ~ ^/api/v1/.* is a mountpoint for the backend http api, which…
Read Articlenvm upgrade to latest LTS and migrate all installed packages
This command is also in the readme of nvm, however I put it here on my blog so I don’t have to search the readme and previously google for the readme 😉
|
1 |
nvm install 'lts/*' --reinstall-packages-from=current |
and then set this version to be the default version
|
1 |
nvm alias default node |
For the record, a link to the readme of nvm
Read ArticleThere is not a single proper database
I’m so tired of it. I’m using MongoDB and you can store files, great. But the Go driver, the official one sucks. And the mgo driver is abandoned. The official driver is also slow, slower than Postgresql. 3.2ms for querying a dataset of 5k entries and another {“_id”: {“$in”: [“list”, “of”, “objectids”]}} that’s 1-20 long…
Read Articlediesel: Failed with: relation “__diesel_schema_migrations” does not exist
If you’re exporting an existing database with pg_dump and trying to use that exported SQL with diesel and your initial migration, even after diesel setup has been done and get this message: Failed with: relation “__diesel_schema_migrations” does not exist Then you likely have the following line in your postgreSQL dump:
|
1 |
SELECT pg_catalog.set_config('search_path', '', false); |
it needs to be…
Read Article