Skip Navigation

Posts
56
Comments
73
Joined
3 yr. ago

  • Thank you all !

    Indeed setting execute perm on example, sub1, sub2, static

    The program/user have now access to the directory.

    In order words all the parents directory need at least execute in order to have access in the targeted directory...

    Now I gave 751 for static. Meaning than others (here nginx) cannot list the files within. But never the less it worksthe static files are appearing when requested (HTTP) but forbidding nginx to list the directory is changing something ? (performance/security)

    Thanks

  • I wanted to have a default server that catch ~wrong DNS query to the server

    I don't know how to link to my previous lemmy post, so here it is again

     nginx
        
    server {
        listen 443 ssl;
        server_name _;
        ssl_certificate /etc/nginx/ssl/catchall.crt;
        ssl_certificate_key /etc/nginx/ssl/catchall.key;
    
        error_page 404 /404_CatchAll.html;
    
        # Everything is a 404
        location / {
            return 404;
        }
    
        location /404_CatchAll.html {root /var/www/html/;}
    }
    
      
  • The full working code:

     nginx
        
    server {
        listen 443 ssl;
        server_name _;
        ssl_certificate /etc/nginx/ssl/catchall.crt;
        ssl_certificate_key /etc/nginx/ssl/catchall.key;
    
        error_page 404 /404_CatchAll.html;
    
        # Everything is a 404
        location / {
            return 404;
        }
    
        location /404_CatchAll.html {root /var/www/html/;}
    }
    
      
  • ok I've found something that ~works !

     nginx
        
    	server {
    		listen 443 ssl;
    		server_name _;
    		ssl_certificate /etc/nginx/ssl/catchall.crt;
    		ssl_certificate_key /etc/nginx/ssl/catchall.key;
    
    		error_page 404 /404.html; #at /var/www/html/
    
    		location /404.html {internal;}
    
    		return 404;
    	}
    
    
      

    so i get the default 404 html from nginx. but not the one that I specified error_page 404 /404.html; any ideas ?

  • line 5 you mean ?

     nginx
        
    error_page 404 /404.html; #this one ?
    
      
  • I've gave a longer trial to gpg4win and it's very power full and easy to use ! Of course it's pointless to use such a nice tool on a none air-gaped Windows..

    For the others there is Gnu-Linux :)

  • Web Development @programming.dev

    Should you allow username to use Apostrophe (aka quotes )

  • Thank you all for your quick reactions !!

    To summarize if I want to use the PDF built-in signing I will need to convert my OpenPGP into a X.509 cert otherwise I can simply use the OpenPGP file signing

    I want to stick to the UNIX Philosophy especially:

    Write programs that do one thing and do it well.

    So I will use the OpenPGP signing tool :)

    Thanks !

  • Thunderbird @lemmy.world

    Is it possible to sign a PDF with an OpenPGP key generated by Thunderbird ?

  • Linux @lemmy.ml

    Is it possible to sign a PDF with an OpenPGP key generated by Thunderbird ?

  • You can interact with the HTML DOM with Python !!!!!

  • Thanks all for your input.

    My only workaround was to check programmatically all those input and set them with a setCustomValidity()

    Too bad there isn't a method to relaunch the validity across all the page :/

    Cheers

  • Thank @daisyKutter@lemmy.ml

    it's look like that that code only verify the form when submitting.. I need to check the validity when the element has been loaded.

    btw checkValidity() do not solve this issue as it return True when the length is longer than maxlength ! O_o I guess this is were is lying the "bug"

    For me this is a huge flaw ! I don't understand how we (dev) are we still developing on "standard" that are so f*ck-up..

  • It will not be digest to send all what I use for you to see it (it will lead to TL;DR)

    but here an elements (loaded with XHR that give the problem

     html
        
    
    
      

    So normally this element should be invalid and a CSS selector of :invalid should match. but it's not the case because the browser seem to not run the validation check on loaded elements... !?

    if we edit manually the input , for example removing one character then the validation process kick-in and the CSS selector work etc..

  • JavaScript @programming.dev

    How run validation on input that have a value set ?

  • CSS @programming.dev

    Hex Color To CSS Filter, Converter

  • Python @programming.dev

    Hex Color To CSS Filter, Converter

  • Hey @hatedbad@lemmy.sdf.org

    Thanks for your output, but RSA seem to not be recommended anymore, dig on a search engine..

  • LemmyTips @discuss.tchncs.de

    Make Lemmy thrive, Privacy & Censorship.

  • @crystal@feddit.de I didn't know about GrapheneOS too bad it only work Pixel phones (that are also owned by Google ! ) So If I'm against Google for all what they do https://degooglisons-internet.org/en/ I'll certainly not give them money !

    (Finding and importing a phone is something you have to do even when using the stock OS.)

    True, but you will do it multiple time if the phone that your looking for doesn't have an available ROM somewhere..

  • Indeed, but in AOSP there is no GMS and that already better !

  • Yes I'm talking about it in my initial post.. but it's not changing the six steps

    1. Found a smartphone ( with the spec you want and in your budget )
    2. Check if you can have\import it in your “country”
    3. Check if someone already cook a ROM that support that specific model
    4. or create it by yourself (even more time consuming )
    5. Sometimes: bypass any protection that prevent to install another ROM !
    6. Finally install the ROM’s, boot loader etc…

  • Android @lemmy.world

    An easy way to Install AOSP on Smartphone... ? FOSS

  • Android @programming.dev

    An easy way to Install AOSP on Smartphone... ? FOSS

  • Has I found nothing, I've write a piece of code in Python 🐍 ! and compile it for Windows..

  • Lemmy @lemmy.ml

    Community Programming stuck ?

  • Programming @programming.dev

    How send emails trough CLI (Windows) ?

  • Programming.dev Meta @programming.dev

    Community Programming stuck ?

  • Security @programming.dev

    How asymmetrically encrypt under windows ( CLI )

  • Privacy @programming.dev

    WTF website certificates chain of trust...

  • Security @programming.dev

    WTF website certificates chain of trust...

  • HTML @programming.dev

    How display an element from another page hosted on another sub domain ?