!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

64 Members
A room for PHP developers running on Nix22 Servers

Load older messages


SenderMessageTime
30 May 2024
@patka_123:matrix.orgpatka (new account: @patka:envs.net) Aren't those things orthogonal? From buildComposerProject's perspective it doesn't matter whether something is private or not. If you are already granted access to the private repo in the usual way then it works just the same, no? 12:06:32
@drupol:matrix.orgPolI guess it should be transparent, but I never tested that sadly.12:12:32
@andmuz:matrix.organdmuzAdding auth.json does seem to help with fetching the dependencies, thanks for pointing me towards that! This should be enough for me to proceed with the POC.12:34:26
6 Jun 2024
@wjjunyor:matrix.orgwGuys, hey there! I am having an issue, nginx is preventing pdf downloads in a wordpress host. Has anyone faced this issue?17:36:22
@tgerbet:matrix.orgtgerbethttps://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?17:37:58
@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

Show newer messages


Back to Room ListRoom Version: 6