BaalInvoker
@BaalInvoker@lemmy.eco.br
- Comment on I'm deploying a Laravel app on nginx. Only the main route works, every other throws me a 404 2 months ago:
Oh, I wasn’t aware of that. I have no experience whatsoever with nginx. I thought that .htaccess was universal
- Comment on I'm deploying a Laravel app on nginx. Only the main route works, every other throws me a 404 2 months ago:
Why are you using that?
location ~ /\.ht { deny all; }
You’re denying the access to your root, which is the
public/
folder and has the file.htaccess
that has<IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews -Indexes </IfModule> RewriteEngine On # Handle Authorization Header RewriteCond %{HTTP:Authorization} . RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] # Redirect Trailing Slashes If Not A Folder... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} (.+)/$ RewriteRule ^ %1 [L,R=301] # Send Requests To Front Controller... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] </IfModule>
This file handles the income requests and send to the front controller.
- Comment on I'm deploying a Laravel app on nginx. Only the main route works, every other throws me a 404 2 months ago:
I’m not sure, but looks like you’re denying all .htaccess files. Laravel depends on .htaccess to make things work properly
Take a look on Laravel docs - Deployment to make sure your configs are right
- Comment on Bird flu infects California dairy cows, widening US outbreak 2 months ago:
Not only that, but also people are stupid.
Bird flu is contaminating mammals like cows and pigs, it’s a small jump to infect humans (btw, it already contaminated rural employees). A simple pasteurization procedure (heat up to 70°C and then cool down faster) is enough to kill the virus, but there is a trend in US to drink raw milk just because they’re saying that pasteurization is a form of government control and brain washing.
The only issue is that these arrombados (I’ll keep this word in my language) that are doing this shit will probably get infected, spread a totally avoidable disease and probably infect someone who’s trying to take all the precautions needed.
- Comment on Bird flu infects California dairy cows, widening US outbreak 2 months ago:
And here we go again with another pandemic…
- Comment on Good foss pastbin 4 months ago:
Does any of these in alternativeto.net/software/pastebin/?license=open… works for you?
- Comment on How do you handle family requests that you disagree with? 6 months ago:
I would be sincere:
Movies take too many space in SSD and too many resources to host, therefore I’m not going to host movies I disagree with. And if she really want this movies to be digitalized, I would give her a choice to buy new hardware (probably SSD) to be dedicated to her.
- Comment on Google Gemini is really bad. 6 months ago:
When he starts to apologize, shit goes from bad to worse… Never trust him. Never trust him even more when he starts apologizes.
BTW, looks like he mixed up CO2 footprint from real life with Civ VI CO2 levels
- Comment on People are out there right now trying to correct every grammar mistake on the internet. 6 months ago:
I’m on the opposite side. I’m trying to inccorect grammar and spelling mistakes.
You may said:
People is out there right now trying to correct every gramar mistake on the internet.
- Comment on You did it. The crazy son of a bitch, you did it. 7 months ago:
You denier!
- Comment on You did it. The crazy son of a bitch, you did it. 7 months ago:
What?? How?!
Shit, he just convinced me! I have no arguments against insanity, so I must agree
- Comment on Confused about bot scanning my domain 8 months ago:
As long as you set your home server properly, with allow rules, firewalls and stuff, you’ll be fine
But don’t be sloppy, take care of your server
- Comment on Would it be possible to run Pi-hole, Octoprint and Home Assistant on the same RPi 3 mod. B? 8 months ago:
I think it’s possible to run everything in the same RPi 3b, however I think it will not be smooth, cause there is only 1GB of ram available…
I think the best is one device for each service, however I know that sometime we can’t afford that, so I think you need at least 1 device for Pi-Hole and Octoprint, and another to the Home Assistant
- Comment on Help a noob find what I'm looking for please. I have a bunch of IP addresses and I wanna give em names. 8 months ago:
With AdGuard Home you can set your wife’s devices to bypass protection. Just set her devices to static ip and set a custom rule like:
@@||*^$client=127.0.0.1
Where
127.0.0.1
must be changed for her ip address. This rule means:@@|| = unblock *^ = everything $client = for this client
- Comment on Help a noob find what I'm looking for please. I have a bunch of IP addresses and I wanna give em names. 8 months ago:
Yes, you can setup a DNS server to redirect these requisitions to the servers. However you’ll have to make sure that every single device is using the DNS server you configured.
You can also configure
avahi
(on linux) or otherzeroconf
(you must find out what zeroconf each other system have, cause I don’t know) to recognize local hostnames as mDNSI use
avahi
to discover myoctopi.local
in my network and it works like a charm - Comment on Is there a way to preserve my comments before closing my instance? 8 months ago:
Can’t you backup your database?
- Comment on I'm a US citizen, people in other countries, what do you think when you read stories like these about the US health care system? 8 months ago:
Well, in my country you have the option to pay for medcare or use a private plan. However you have full access to public, free and universal healthcare which you don’t have to pay anything for it.
We don’t have to convince anyone here. If you need attention, you’ll get attention. For free.
I think us healthcare is a joke. A bad taste joke.
- Comment on Spam posts 8 months ago:
Bloco user as well
Im blocking every single piece of shit spamming
- Comment on Smooth area on the bottom of my balls 9 months ago:
Is it the perineum you’re talking about?
- Comment on Port Forwarding Alternative? 11 months ago:
I think Tailscale can do the job, making you connect your server through a VPN.
- Comment on Server not reachable after while 1 year ago:
Yeah… I can even ping the server from the router firmware! It’s really weird!
Yes, I rebooted and looked for firmware update, but nothing
You could also script a reconnection on the laptop to happen every six hours or something.
I’m trying other alternatives first, such as ping the gateway every hour and disabling power saving mode on the laptop
- Comment on Server not reachable after while 1 year ago:
The router is not mine… I’ll not change the firmware cause the router is borrowed from the ISP and I must give it back if I change my ISP
I’m trying the power saving mode and hoping that is the issue!
Another guy suggested ping the router from the server for once in a while as well and I think it must “remember” the router about the existence of the server
- Comment on Server not reachable after while 1 year ago:
Well, I may try this… Maybe set a systemd timer to ping the router for once in a while…
But I’ll wait to check if disabling saving mode do the job. If it doens’t I’ll try the ping workaround
- Comment on Server not reachable after while 1 year ago:
I also suspected about DHCP, but at the router it says it’s connected and reachable…
I really don’t know if it’s DHCP or if the server did not renewed the connection somehow
- Comment on Server not reachable after while 1 year ago:
I’ll definitely take a look at this power saving mode! Thank you!
Also, I would definitely try with your laptop wired instead of wireless if you can.
It’s kinda hard at my setup, cause the router is not close to anywhere I can put my laptop… But I’m looking for some SBC like Raspberry Pi or something to make it connected wired to the router
- Submitted 1 year ago to selfhosted@lemmy.world | 10 comments
- Comment on Looking for an alternative to cloudflare tunnel 1 year ago:
The easiest way I found to passthrough a cgnat is using a VPN.
I suggest using Tailscale, cause it does some tricks to bypass cgnat and you can access your truenas server.
- Comment on Transitioning from GnuCash 1 year ago:
Keep an eye on Denaro… I think there is a plan to make an Android app soon
- Comment on Netflix on AndroidTV still blocks me with wireguard connection 1 year ago:
Tailscale only make easier to set exit nodes and manage wireguard setups… Try it and tell us what happens…
Anyway, I don’t know exactly what’s going on. Maybe you’re forwarding some packages to your wireguard VPN, like TCP/80, but not UDP or TCP/443. Check if everything is being properly forwarded, so all your connection is from Wireguard
- Comment on Netflix on AndroidTV still blocks me with wireguard connection 1 year ago:
Haver you seem what’s your ip and ipv6 on the foreingner house?
Maybe your wireguard connection is creating a lan, but you didn’t configured an exit node or didn’t connected to the exit node.
Another solution could be using Tailscale as well