Categories
Development GitHub System & Network

How can I proxy_pass all addresses after a location /(.*) with nginx?

I’m running a node.js application called serve that shows the files and folders from a specific path of my computer on a webpage: This application works fine by itself. However, when I try to make it run with nginx on the location /page/, I’m not capable of seeing the contents of any files or folders […]

Categories
Development System & Network

Ubuntu Server / Apache not listening to port 443

I’m having trouble reaching my site through https after executing the certbot script. That process finished without issues, the message was: Congratulations, you have succesfully enabled https://chiloexpress.ddns.net However, when I test my configuration at SSLlabs, the error message says: Assessment failed: Unable to connect to the server When I try to access my site with […]

Categories
Development System & Network

Debugging postfix/dovecot: Finding out which application is trying to connect from localhost 127.0.0.1

The problem occurs on my mail server, which apart from that works perfectly. Clients can connect via IMAP and Postfix receives and sends out emails without any hassle. Installed software: $> dpkg –list ii postfix 3.1.12-0+deb9u1 amd64 ii dovecot-core 1:2.2.27-3+deb9u5 amd64 ii dovecot-imapd 1:2.2.27-3+deb9u5 amd64 I get the following error message every minute (and as […]

Categories
Development System & Network

I need to create an Email server with Hmail (or any else) and redirect from my hosted .com

I live in Argentina and currently our credit cards and payments to the outside are all blocked (again, thanks socialism) I currently run a small service provider and i have our domain and email hosted in globat. The thing is i’ll keep with them the .com service but the mail server i’ll have to transfer […]

Categories
Development System & Network

Tag based biling or backup in GCP

I want to create enforce policy in google(GCP) the same as in azure so whenever any user creates the new VM or any resource it will force him to add the tags defined by the admin(me) compulsory. Please provide the solution or any document if have. Thanks in advance!

Categories
Development System & Network

Cannot create PersistentVolume in Kubernetes

I’m trying to create a new PersistentVolume in Kubernets (version 1.14), but it returns me the following error: The PersistentVolume “postgres-pv-volume” is invalid: * spec.persistentvolumesource: Forbidden: is immutable after creation * nodeAffinity: Invalid value: “null”: field is immutable Here’s my YAML: apiVersion: v1 kind: PersistentVolume metadata: name: postgres-pv-volume namespace: is-app spec: capacity: storage: 5Gi accessModes: […]

Categories
Development System & Network

Is it possible to give JCMD a service name rather than PID?

I need to monitor a service automatically but the PID keeps changing with every restart so I want to be able to do jcmd servicename Thread.print > log.txt rather than jcmd 2230 Thread.print > log.txt Either that, or I want a way to store pid in a variable var =`pidof servicename` # didn’t work It’s […]

Categories
Development System & Network

GRUB – lvm module parameters

For some reason, grub is not “seeing” a disk that is part of a LVM array because the disk number is superior to eight – or at least, that’s what I guess, since if you re-arrange the disks, and set both members of the lvm group below the eight disk, it does not run into […]

Categories
Development Docker System & Network

docker-in-docker: `Cannot connect to the Docker daemon at tcp://docker:2375`

I am trying to manually use the docker:19.03.5-dind image as shown by the “How to use this image” section. First I am running the daemon $ docker run –privileged -d –rm –name=docker-daemon \ –network=test docker:19.03.5-dind e1f8544d30df5bc010d67e38b38be0f47306b29ab0fdeb32861c5716582c9917 I see that it is up and listens on port 2376 $ docker logs docker-daemon … time=”2019-11-28T11:31:40.266976728Z” level=info msg=”Daemon […]

Categories
Development System & Network

How to limit packets per second without dropping it?

Is there a way to limit packets per second without dropping it i want pps above 40 to be delayed to next second i can limit with iptables with these commands but it will be dropped iptables -A POSTROUTING – t mangle -d 192.168.1.100/32 -m limit – – limit 40/s – j ACCEPT iptables – […]