Get the most out of your Centmin Mod LEMP stack
Become a Member

Nginx PageSpeed How do I compress attachments?

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by Maester Aemon, Mar 24, 2016.

  1. Maester Aemon

    Maester Aemon New Member

    20
    3
    3
    Mar 24, 2016
    Ratings:
    +5
    Local Time:
    4:51 PM
    1.9.12
    This forum compresses attachments into webp, I want to do that as well (I use xenforo).

    Though my problem is that an attachment image link is for example "-jpg.123", "-png.123" and not ".jpg" or ".png".

    I am using LoadFromFileRuleMatch and I've tried different entries but didn't work for me.
    Anyone that knows how to do it?
     
  2. RoldanLT

    RoldanLT Well-Known Member

    3,830
    929
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,258
    Local Time:
    10:51 PM
    1.11
    10.2
    • Like Like x 2
  3. Maester Aemon

    Maester Aemon New Member

    20
    3
    3
    Mar 24, 2016
    Ratings:
    +5
    Local Time:
    4:51 PM
    1.9.12
  4. RoldanLT

    RoldanLT Well-Known Member

    3,830
    929
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,258
    Local Time:
    10:51 PM
    1.11
    10.2
    I think he move attachment to /data/ folder.
     
    • Like Like x 1
  5. Maester Aemon

    Maester Aemon New Member

    20
    3
    3
    Mar 24, 2016
    Ratings:
    +5
    Local Time:
    4:51 PM
    1.9.12
    Nevermind, figured it out.
    Thanks :)
     
    • Like Like x 1
  6. eva2000

    eva2000 Administrator Staff Member

    29,034
    6,589
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,784
    Local Time:
    12:51 AM
    Nginx 1.13.x
    MariaDB 5.5
    yup that's what i do on this forum :)
     
  7. Maester Aemon

    Maester Aemon New Member

    20
    3
    3
    Mar 24, 2016
    Ratings:
    +5
    Local Time:
    4:51 PM
    1.9.12
    Have to thank you a lot for centminmod, makes life easier :D
     
    • Like Like x 1
  8. eva2000

    eva2000 Administrator Staff Member

    29,034
    6,589
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,784
    Local Time:
    12:51 AM
    Nginx 1.13.x
    MariaDB 5.5
    You're welcome.. makes my life easier too :D
     
    • Like Like x 1