https://twill.io logo
Join Discord
Powered by
# ❓questions
  • k

    kalle

    07/25/2022, 11:53 AM
    Any additional info beside encryption is not working? If you use Chrome, you can check the Developer tools > Security and there should be error which indicates whats wrong with your cert.
  • d

    delta107

    07/25/2022, 11:56 AM
    There is nothing wrong with the certificate. It's a valid LE certificate
  • d

    delta107

    07/25/2022, 11:58 AM
    I have read on various resources of HAProxy, they say the issue is not at the SSL termination itself
  • i

    ifox

    07/25/2022, 11:58 AM
    the action of the form seems generated with http even though you loaded the page with https
  • d

    delta107

    07/25/2022, 11:59 AM
    Yes. That is the problem
  • k

    kalle

    07/25/2022, 12:00 PM
    Action URLs are generated by your .env configuration. Can you share with us you env vars for domain setup?
  • d

    delta107

    07/25/2022, 12:00 PM
    sure!
  • i

    ifox

    07/25/2022, 12:00 PM
    did you configure https://laravel.com/docs/9.x/requests#configuring-trusted-proxies ?
  • d

    delta107

    07/25/2022, 12:02 PM
    I'm also using laravel 8 as I understand that twill doesn't support 9. I haven't touched anything, this is a clean install
  • i

    ifox

    07/25/2022, 12:02 PM
    Twill does support 9
  • d

    delta107

    07/25/2022, 12:02 PM
    APP_URL=mydomain ADMIN_APP_URL=mydomain ADMIN_APP_PATH=admin
  • i

    ifox

    07/25/2022, 12:02 PM
    it isn't a Laravel 8 or 9 thing tho
  • d

    delta107

    07/25/2022, 12:02 PM
    I tried using https://mydomain it didn't help
  • i

    ifox

    07/25/2022, 12:03 PM
    because the SSL termination is happening upfront your Laravel app doesn't understand it should use https
  • d

    delta107

    07/25/2022, 12:04 PM
    Well this is a very common deployment scenario where the termination is done on the load balancer itself
  • i

    ifox

    07/25/2022, 12:05 PM
    I'm not saying it's not a common scenario I'm just saying you need to configure Laravel accordingly with this scenario
  • d

    delta107

    07/25/2022, 12:06 PM
    Ok I will try the link you posted, thanks!
  • i

    ifox

    07/25/2022, 12:07 PM
    https://michielkempen.com/blog/generate-https-urls-when-running-laravel-behind-a-proxy
  • d

    delta107

    07/25/2022, 12:08 PM
    Curious. Because I read on SSL termination guides a specific header is added by the load balancer, I mean you have to add it. Which I do
  • d

    delta107

    07/25/2022, 12:08 PM
    X-Forwarded-Proto
  • d

    delta107

    07/25/2022, 12:09 PM
    But I understand the issue thanks for pointing me to the resources!
  • k

    kalle

    07/25/2022, 12:11 PM
    Im not expert myself here, but I have checked a few running Twill production projects and all of them have https in front of URL vars. APP_URL=https://example.com ADMIN_APP_URL=https://example.com ADMIN_APP_PATH=admin Also delete cache after changing values.
  • d

    dedli

    07/25/2022, 12:50 PM
    Оk, thanks )
  • d

    delta107

    07/25/2022, 1:22 PM
    @ifox But https://twill.io/docs/getting-started/#frontend-assets Does it mean that 8.X is recommended instead of laravel 9?
  • i

    ifox

    07/25/2022, 1:52 PM
    no this is just outdated, sorry
  • d

    delta107

    07/25/2022, 2:16 PM
    @ifox Thanks this is an awesome article!
  • d

    delta107

    07/25/2022, 2:18 PM
    Learn great stuff!
  • b

    BA7YA

    07/26/2022, 8:06 AM
    Hi Guys. How I can make search using slug in module? I tried that https://twill.io/docs/global-search/ but it's not working for me at all
  • i

    ifox

    07/26/2022, 9:49 AM
    Hi @BA7YA slug is not a column on the main module table so it won't work like this. See the implementation of
    cmsSearch
    which you can override in your module's repository class: https://github.com/area17/twill/blob/844d38a0bb698974b280b0b3d1f5ba26472e0c1a/src/Repositories/ModuleRepository.php#L194
  • b

    BA7YA

    07/26/2022, 12:33 PM
    One more question. How I can change searching in Module?
    k
    • 2
    • 2
1...365366367...484Latest