!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

64 Members
A room for PHP developers running on Nix22 Servers

Load older messages


SenderMessageTime
6 Jun 2024
@wjjunyor:matrix.orgw
In reply to @wjjunyor:matrix.org
Guys, hey there! I am having an issue, nginx is preventing pdf downloads in a wordpress host. Has anyone faced this issue?

TLDR - Solved:

Added to conf:

17:46:28
@wjjunyor:matrix.orgw
In reply to @wjjunyor:matrix.org
Guys, hey there! I am having an issue, nginx is preventing pdf downloads in a wordpress host. Has anyone faced this issue?
*

TLDR - Solved:

Added to conf:

root = "/var/www/${domain}";
extraConfig = ''
fastcgi_index index.php;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
try_files $uri $uri/ index.php /index.php$is_args$args;
include ${pkgs.nginx}/conf/fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_param APP_ENV dev;
'';
};
locations."~* (.*\.pdf)" = {
extraConfig = ''
types { application/octet-stream .pdf; }
default_type application/octet-stream;
'';
};
17:46:45
@drupol:matrix.orgPol
In reply to @tgerbet:matrix.org
https://www.php.net/ChangeLog-8.php

8.3.8, 8.2.20, 8.1.29

The bypass of arg injection in PHP CGI is not great (if you still run stuff with that)

Does anyone have the time to deal with it?
Yes in 1 or 2 hours.
17:55:39
@drupol:matrix.orgPolGotta take care of family first here :S17:55:46
@drupol:matrix.orgPolDone: https://github.com/NixOS/nixpkgs/pull/31783021:08:55
7 Jun 2024
@drupol:matrix.orgPolMerged05:30:07
@merlindawizard:matrix.orgmerlindawizard joined the room.13:21:41
10 Jun 2024
@mjolnir:nixos.orgNixOS Moderation Bot unbanned @jonringer:matrix.org@jonringer:matrix.org.00:17:11
@drupol:matrix.orgPolComposer Security PR: https://github.com/NixOS/nixpkgs/pull/318910 21:05:13
@tgerbet:matrix.orgtgerbetFlagged for automatic backport on stable branches, from a quick look it should be fine It's nice to get an audit from the Cure53 people21:12:15
@drupol:matrix.orgPolIt's also nice to be able to publish updates so quickly21:13:19
@tgerbet:matrix.orgtgerbetOh you flagged them before me drupol 👍21:13:22
@drupol:matrix.orgPolThis is one of the reason why I love Nix.21:13:29
11 Jun 2024
@drupol:matrix.orgPol tgerbet: Should I backport for 23.11 too? 06:15:46
@drupol:matrix.orgPolI'm looking for some help in here: https://github.com/NixOS/nixpkgs/issues/31891306:39:06
@drupol:matrix.orgPolOh you did it07:30:49
@tgerbet:matrix.orgtgerbet
In reply to @drupol:matrix.org
tgerbet: Should I backport for 23.11 too?
Yes, we still support it for ~ 20 days, I created the PR from scratch since it cannot really be cherry-picked
07:31:04
@drupol:matrix.orgPolyeah I wanted to backport all the PR we did in between in the meantime07:31:25
@drupol:matrix.orgPolBut I don't think this is a good idea07:31:30
@drupol:matrix.orgPolReady to merge.07:31:40
@drupol:matrix.orgPolThank you for doing it.07:32:01
@tgerbet:matrix.orgtgerbetYeah they are large changes, it's probably "safer" to do the upgrade manually07:33:50
@drupol:matrix.orgPolOK.07:36:02
@tgerbet:matrix.orgtgerbetAnd it's less work 😅07:36:31
17 Jun 2024
@drupol:matrix.orgPol Jan Tojnar: https://github.com/fossar/nix-phps/pull/350 12:31:50
19 Jun 2024
@genghiz:talk.go7box.xyz@genghiz:talk.go7box.xyzSmall issue with firefly-iii. The dev has decided to pull translations during build time from crowdin. 09:08:35
@genghiz:talk.go7box.xyz@genghiz:talk.go7box.xyzSo if we build it using the existing process (using composer) we do not get the localisations. We can only get them now if we pull the built version off GitHub. 09:09:13
@genghiz:talk.go7box.xyz@genghiz:talk.go7box.xyzShould we not care about localisations then?09:09:30
@genghiz:talk.go7box.xyz@genghiz:talk.go7box.xyzGetting them from Crowdin requires an access token. 09:09:44
@drupol:matrix.orgPol#facepalm09:10:36

Show newer messages


Back to Room ListRoom Version: 6