Comments (7)
So, I made it partially working.
If I start cockpit this via php -S 0.0.0.0:80 index.php
GraphQL request is working. But via php-fpm process is failing. Any ideas? Nothing in logs, is making me pretty unsure what is going on.
from cockpitql.
bump on the same issue...
My nginx config looks like this:
# Nginx configuration
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
index index.php index.html;
#server_name localhost;
charset utf-8;
location / {
# try_files $uri /index.php?$query_string;
try_files $uri $uri/ /index.php;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
error_log /var/log/nginx/error.log;
access_log /var/log/nginx/access.log;
sendfile off;
client_max_body_size 100m;
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass cockpit-app:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param COCKPIT_URL_REWRITE On;
fastcgi_intercept_errors off;
fastcgi_buffer_size 16k;
fastcgi_buffers 4 16k;
}
# Deny direct access
location ~ /(\.ht|\.git|cp|composer.json|package.json|storage\/logs\/cockpit.log|storage\/data\/) {
deny all;
}
}
from cockpitql.
Same issue with Nuxt and Apollo
from cockpitql.
Same for me. Frustrating as my origin master api-key worked, then I regenerated it and since then its giving me 401 every time. I've cleared cockpit cache at /settings/info
and restarted nginx but no joy.
Edit: Apologies, was user error on my part, was hitting a test domain rather than production one.
from cockpitql.
Same here
I just downloaded the archive content to the /addons/CockpitQL directory.
api/graphql/query?token=token gives {"error":"Unauthorized"}
from cockpitql.
Any progress on this issue?
from cockpitql.
@flayks , I guess you may be facing the same error like me. Artur answered here that you can't use custom token. You can only use account token which is under account setting.
from cockpitql.
Related Issues (20)
- Linked item does not work HOT 2
- Filter by query variable HOT 3
- Accessing slug variables HOT 2
- Respect cockpit permissions HOT 2
- Dynamic singleton queries
- all{Collection} not being returned in __schema
- Filter by date HOT 1
- How to use this plugin HOT 6
- How to use Graphql in cockpit HOT 4
- Fatal error: Uncaught Error: Call to a member function on() on null in
- Literally no instructions whatsoever. HOT 1
- Can not get fields created by other Addons HOT 2
- Specifying variables object in query param results in 500 error
- Mutation with token HOT 1
- Using the Cockpit CLI for installation is not working HOT 1
- Latest version of Cockpit (10.2) addons are missing from menu HOT 1
- Float field type would be nice to add HOT 2
- Error: "Please implement the index action"
- Lang variable does not propagate to collection links HOT 3
- UI: can't see full CURL
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cockpitql.