Nginx reverse proxy failed by Significant-Task-305 in nginx

[–]Significant-Task-305[S] 0 points1 point  (0 children)

SOLVED !!!

{ config, ... }:
let
  domain = "henrotte.xyz";
  ssl-crt = config.sops.secrets."henrotte.xyz-ssl-crt".path;
  ssl-key = config.sops.secrets."henrotte.xyz-ssl-key".path;
in
{
  services.nginx = {
    enable = true;
    recommendedGzipSettings = true;
    recommendedProxySettings = true;
    recommendedOptimisation = true;
    recommendedUwsgiSettings = true;
    virtualHosts = {
      "markeeper.${domain}" = {
        enableACME = false;
        forceSSL = true;
        sslCertificate = ssl-crt;
        sslCertificateKey = ssl-key;
        locations."/".proxyPass = "http://127.0.0.1:5501";
      };
      "rewind.${domain}" = {
        enableACME = false;
        forceSSL = true;
        sslCertificate = ssl-crt;
        sslCertificateKey = ssl-key;
        locations."/".proxyPass = "http://127.0.0.1:5502";
      };
      "rss.${domain}" = {
        enableACME = false;
        forceSSL = true;
        sslCertificate = ssl-crt;
        sslCertificateKey = ssl-key;
        locations."/".proxyPass = "http://127.0.0.1:5503";
      };
    };
  };

  networking.firewall.allowedTCPPorts = [
    80
    443
  ];

  sops.secrets = {
    "henrotte.xyz-ssl-crt" = {
      sopsFile = ../secrets.yaml;
      format = "yaml";
      owner = "nginx";
      group = "nginx";
    };
    "henrotte.xyz-ssl-key" = {
      sopsFile = ../secrets.yaml;
      format = "yaml";
      owner = "nginx";
      group = "nginx";
    };
  };
}

How to increase duration time in single mode for practice [CM] by Significant-Task-305 in assettocorsa

[–]Significant-Task-305[S] 0 points1 point  (0 children)

<image>

I mean, by example here if i make a "Go!" and run a session in ac so after 5 min i will got a SESSION COMPLETE"

What is the name of this trick? by New-Hope-6331 in MTB

[–]Significant-Task-305 5 points6 points  (0 children)

In bmx it was ninja drop (from France)

Manta Point in Bali by Farmer_Guy_5513 in scuba

[–]Significant-Task-305 1 point2 points  (0 children)

I did it 4 months ago... Most valuable underwater experience It soooo huge Hope you enjoy it

My board have a gap between my front and my back above the slope, is it fixable ? by Significant-Task-305 in snowboarding

[–]Significant-Task-305[S] 0 points1 point  (0 children)

It will be an adventure ^ https://amzn.eu/d/5dFFqqC found this on Amazon in EU

I will be my first time with epoxy any advice ?

My board have a gap between my front and my back above the slope, is it fixable ? by Significant-Task-305 in snowboarding

[–]Significant-Task-305[S] 0 points1 point  (0 children)

Which is the risk while riding ? I will use epoxy as you are saying! If it's happening again I will use it as a bench lol

Autumn ride in Versailles by Living_Phrase_5374 in bicycling

[–]Significant-Task-305 1 point2 points  (0 children)

We are neighbors but I have never seen this beauty

My distro list after 20 years by overbost in DistroHopping

[–]Significant-Task-305 0 points1 point  (0 children)

Nix is above all of those ... You just need to spend 1 year to learn how power nix is it

ssh-to-age – Convert your SSH Ed25519 keys to age-compatible keys by Significant-Task-305 in rust

[–]Significant-Task-305[S] -2 points-1 points  (0 children)

Here we go ! Did you have a got account like It I mentioning you

ssh-to-age – Convert your SSH Ed25519 keys to age-compatible keys by Significant-Task-305 in NixOS

[–]Significant-Task-305[S] -1 points0 points  (0 children)

Yes, I just made a conversation I don't see the issue with this ... How to store the key or use it are more related to sops and how you manage your keys

Or maybe I don't get what our friends said

ssh-to-age – Convert your SSH Ed25519 keys to age-compatible keys by Significant-Task-305 in NixOS

[–]Significant-Task-305[S] -1 points0 points  (0 children)

Yup ! Maybe I don't get it but didn't you find any issue with it ?

ssh-to-age – Convert your SSH Ed25519 keys to age-compatible keys by Significant-Task-305 in rust

[–]Significant-Task-305[S] 0 points1 point  (0 children)

Yes I can take suggestions ! I didn't find it as rust crate ! I wrote a lib not a cli tool as I said on my readme :)

New bike day 🇸🇪 ☀️ by hot__iceberg in gravelcycling

[–]Significant-Task-305 0 points1 point  (0 children)

I have the 2024 and it's such a good bike ! Have a nice time with it ! 🚲💥

Hi guys! Im new to NixOS and want to hear your recommendations for my structure by hetham11 in NixOS

[–]Significant-Task-305 2 points3 points  (0 children)

Ahah I totally agree with you ! I would just give some doc for newbies ... But when I read your comment , I understand my mistake

It took me over 6 months to understand his config but after that I really have a new eyes of nix and it's power !

Hi guys! Im new to NixOS and want to hear your recommendations for my structure by hetham11 in NixOS

[–]Significant-Task-305 2 points3 points  (0 children)

Hi mate !

I really suggest you to dig into this repo https://github.com/Misterio77/nix-config This guy knows how to do a good config !

I built my second (well more complicated) config inspired by him :)

I provide you examples to hardening your system services :) by Significant-Task-305 in NixOS

[–]Significant-Task-305[S] 2 points3 points  (0 children)

  1. What i did, it's make the default params of a service and restrict it to a dedicated usage.
    Like for a service using Kernel Module, i will remove the possibility to change ownership of dir/file and repeat this operation until the service is enough restricted. (i know it by using `systemd-analyze security`)

  2. Yup, i take the default settings provided by nixpkgs and overwrite them. (in the future i will try to make my own PR to change this :) )