Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • Dec 30 2020 04:03
    Firfi closed #5002
  • Dec 30 2020 04:03
    Firfi commented #5002
  • Dec 29 2020 11:34
    Firfi opened #5002
  • Dec 24 2020 13:40
    yousry943 opened #5001
  • Dec 01 2020 14:42
    bbqaaq opened #5000
  • Nov 16 2020 09:19
    LocalCiggyShop commented #3994
  • Nov 12 2020 13:10
    sambhav2612 commented #4989
  • Nov 08 2020 14:19
    parse-hardik edited #4999
  • Nov 08 2020 14:18
    parse-hardik commented #4999
  • Nov 08 2020 14:18
    parse-hardik commented #4999
  • Nov 08 2020 14:13
    parse-hardik ready_for_review #4998
  • Nov 08 2020 14:13
    parse-hardik converted_to_draft #4998
  • Nov 08 2020 14:12
    parse-hardik reopened #4998
  • Nov 08 2020 14:11
    parse-hardik commented #4999
  • Nov 08 2020 14:11
    parse-hardik commented #4999
  • Nov 08 2020 14:11
    parse-hardik closed #4999
  • Nov 08 2020 14:11
    parse-hardik opened #4999
  • Nov 08 2020 14:10
    parse-hardik commented #4998
  • Nov 08 2020 14:09
    parse-hardik closed #4998
  • Nov 08 2020 11:41
    parse-hardik ready_for_review #4998
James Allen

Hi all, its been a while since I've done anything with Keystone and am wanting to update an old 0.3 version app to the latest. I'm having some issues with the new File storage adapters... previously in my models I had:

  audio: { type: Types.S3File, collapse: true, allowedTypes:['application/mp4', 'application/mp3'] }

which I have moved over to the File adapter, but it is the pre hook I can't seem to find, nor reference to them being deprecated

Sermon.fields.audio.pre('upload', function(item, file, next) {

now gives me:

TypeError: Sermon.fields.audio.pre is not a function
Dmitry Grigorov
Hi guys! How do you usually contribute keystone ? I mean how do you start project in dev mode ?
I just installed keystonejs using Docker-compose on Ubuntu 16. I have apache2 with letsencrypt. I have enabled the ssl. And now when I start the app it shows that my HTTP app is on 3000 and HTTPS is on 3001. But when I go to the domain from browser it shows (!) not properly secured
I tried pointing the ssl.conf files to 3001 ... using
ProxyPass / http://localhost:3001/
ProxyPassReverse / http://localhost:3001/
ProxyPreserveHost On
But it did not work
Here is my keystone.js SSL part:
'ssl': true
'port': 3000,
    'admin path': 'admin',
    'ssl cert': '/etc/letsencrypt/live/domain.com/fullchain.pem',
    'ssl key': '/etc/letsencrypt/live/domain.com/privkey.pem',
    'letsencrypt': (process.env.NODE_ENV === 'production') && {
        email: 'user@gmail.com',
        domains: ['www.domain.com', 'domain.com'],
        register: true,
        tos: true,
Hi. Is there any example on how to use GridFS or simular instead of CloudinaryImage for saving images?
Yashaswi Maharshi
Yashaswi Maharshi
Create an rest api for inserting data from the frondend, the api get hit, but insert the blank field in the db
let data = req.method === 'POST' ? req.body : req.query;
let newEmailSubscriber = new EmailSubscriberList.model();
EmailSubscriberList.updateItem(newEmailSubscriber, req.body, function (err) {
if (err) return res.status(500).json({ error: err });
message: 'Successful',
can someone help me out, what is the issue in it
Yashaswi Maharshi
Thanks I got the solution
Hi everyone
Can someone gelp
I just installed keystone-react
Launched mongod
But keystone do not init
It was suppose to be this issue:
But still not working
Any idea ?
Dan Black
hi there! new to keystone, i'm a little confused about user login. everything in demo seems to be about the admin login... how do i get the user login / account creation stuff up? any good parts of the docs I'm missing? sorry if it's obvious. thanks!
if user li: a(href='/keystone') Admin UI li: a(href='/keystone/signout') Sign Out else li: a(href='/keystone/signin') Sign In
is that how we want users to log in? i am missing something!
Dan Black
i guess so
Michael O'Keeffe
Is there a workflow in place for repairing dependency vulnerabilities?
found 10 vulnerabilities (5 low, 5 moderate) in 6529 scanned packages
10 vulnerabilities require manual review. See the full report for details.
Hi @dyspop, just learning KS (and Javascript!) as well, I think the SydJS website is a great place to start to learn more advanced features, as it's available on GitHub. You find it along with other examples (not opensource though) on the KS examples page: https://v3.keystonejs.com/examples
Hey Guys, I'm not finding any docs, guide or resource on how to use custom view engines on Keystone. The one for handlebars seems like it's been abandoned for over 2 years so I'm trying to use an alternate hbs library
Yashaswi Maharshi
Hey guys, I am doing signin / signout of the user using APIs, does any knows what is the default session timeout and how can we change it
Shakti Singh
Hi Below Code is working fine in local server but it is not working in live server
$params = (array) json_decode(file_get_contents('php://output'), TRUE);
what can be the issued
Hi everybody. I'm new to keystone. I have a question. How can I download uploaded files from keystone admin UI? I see only file name with extension in the list item field but I couldn't download it
    `var q = keystone
            page: req.query.page || 1,
            perPage: 2,
            maxPages: 5,
        .where('state', 'published')
        .populate('author cateservice');

    if (locals.data.categories !== null && locals.data.categories._id) {
I try to paging but look, Keystone query all post without condition from model
Hi, Am new to Keystone. Can anyone help me in integrating keystone with Already Existing Express App.
Mitul Patel
Why you want to integrate it in Express App ?
Can you please explain your usage of @hari-zeptoh
@mitul69 we need a cms module for our app
Mitul Patel
Ok then why need express
App is for the mobile or web app.
Its not a app just a community page. We have buit it already in Express now we need a CMS for that
How can i use ejs insted of pug?
Just install it with npm and pass it’s name to keystone initial config as string, as I remember
Mitul Patel
When you create new app then it will ask for the template engine please select ejs .
I have selected ejs but in ketstone.js file shows pug only
@gerhr If i install ejs using npm after that i need to change all the pug files a ejs
tq @gerhr its working
Chris Steenekamp
Hey Guys does anyone know how I can view only a specific gallery created?
Christopher Schaub
what is the way to delete the admin ui cache ?