spirinolas

joined 1 year ago
[–] [email protected] 1 points 1 week ago* (last edited 1 week ago)

The correct URL appears in the browser but the page shows a 404. According to the logs they don't exist...but they're there...

[–] [email protected] 1 points 1 week ago (2 children)

It was the first "solution" on google. Didn't work.

[–] [email protected] 1 points 1 week ago (2 children)

I already went through that. I wouldn't post here without starting with the official documentation.

 

I developed an app in Laravel that uses Google authentication, it works perfectly on my localhost. When I deployed it in my nginx server (ubuntu 24.04) I get the Google login correctly and it proceeds to my main page as expected. But after that, no route is accessible. All of them throw me a 404. I've been googling it for ages but I can't for the life of me find the solution for this.

EDIT: The 404 comes from Laravel, not nginx. The weird part is if I try php artisan route:list on the ser the routes are indeed missing but on the localhost they all show. The code is pretty much the same.

Here's is my app conf file:

server {
    server_name partituras-cmcgb.duckdns.org;
    root /var/www/html/partviewer/public;

    index index.php index.html index.htm;

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }

    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/var/run/php/php8.3-fpm.sock;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
    }

    location ~ /\.ht {
        deny all;
    }

    error_log /var/log/nginx/partviewer-error.log;
    access_log /var/log/nginx/partviewer-access.log;

    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/partituras-cmcgb.duckdns.org/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/partituras-cmcgb.duckdns.org/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

}
server {
    if ($host = partituras-cmcgb.duckdns.org) {
        return 301 https://$host$request_uri;
    } # managed by Certbot


    listen 80;
    server_name partituras-cmcgb.duckdns.org;
    return 404; # managed by Certbot


}
[–] [email protected] 4 points 2 weeks ago

I also used Spotify but it has a serious problem. There's no guarantee your contents will be always available. I had music there that, for whatever reason, was removed and I can no longer listen to it. Not to mention music that was never available there. I don't want them to control what I can and can't listen.

Now I only use Jellyfin. It works great (except on Android Auto, but they'll get there). Sure I have to download the MP3 but you only have to do it once and then it will always be there. Just use spotDL and rip the music right out of Spotify with all the metadata.

[–] [email protected] 1 points 3 weeks ago

I do, unfortunately there are no efficient alternatives.

[–] [email protected] 23 points 3 weeks ago (14 children)

I'm in the EU and use Windows 10 LTSC so I mostly clear off of this bulshit. A few months ago I bought a cheap refurbished laptop to use occasionally and decided from day 1 it would be Linux Mint only since I only use it for the basics.

A few months later and I'm surprised how far Mint came. It's so easy to use. Customizing it was a bit harder but nothing major. And to my surprise...even games. I threw a couple of games at it and everything the computer can handle would run. I was from the time where gaming on Linux was a no-no.

When LTSC support goes, I'll most likely go full Linux. The only problem is the Adobe software but maybe I can fix that with a virtual machine.

[–] [email protected] 10 points 4 weeks ago (1 children)

This advice is what it is, but I work in a school and Tailscale also seems to be (unintentionally) blocked. After a while I realized it was only the login server that was blocked. If I login using my phone data I can go back to the regular network and it works.

[–] [email protected] 9 points 1 month ago

How nice of him, he took the trash out as he left.

[–] [email protected] 1 points 1 month ago

You mean Aixa-cay Eral-jay de Epósitos-day?

[–] [email protected] 3 points 1 month ago (2 children)
[–] [email protected] 1 points 1 month ago

Portuguese too: "a montanha pariu um rato"

[–] [email protected] 8 points 2 months ago

"Now it must be done..."

  • unzips *
view more: next ›