Categories
Mastering Development System & Network

aws-dns and Cloudflare

Need some help coz I’m freaking out. I want to configure my domain such that when I do host checking, it should reflect DNS nameservers of AWS(amazon web services) but hosted by Cloudflare CDN. I mean the actual IP after host check should be one of Cloudflare. I’ve already integrated my domain nameservers into the […]

Categories
Mastering Development System & Network

Normalize client address in nginx logs

I have a log_format in nginx which uses the $remote_addr variable. It has a variable width — it can for instance be 76.4.56.100. For alignment reason in the logs, I’d like these addresses to be all logged in a normalized, fixed-width format (here, 076.004.056.100). Can it be done? I tried and failed at: using map […]

Categories
Mastering Development System & Network

mysqlx reported: failed at ssl configuration

I have MySQL 8 with the mysqlx plugin enabled running on a standalone server that will never allow access to 3306 from outside the instance and have no worries about security within the instance. I do not want the overhead of SSL connections for clients accessing either the standard or X interfaces. I have disabled […]

Categories
Mastering Development System & Network

mdadm raid5: All disk appear as spare

I had a power plug removed for 2 of the 4 disks of my raid 5. Since then it cannot start. Even with –run –force, –readwrite, etc. I quickly saw it so the data should not be (too much) corrupted. Here’s the detail: /dev/md2: Version : 1.2 Creation Time : Mon Oct 28 14:46:16 2019 […]

Categories
Mastering Development System & Network

Forcing unmount of hanging CIFS mount (server crashed while writing to mountpoint)

Machine A mounts via CIFS from Server S to /backup A is writing to CIFS mount. Server S crashes while writing, it stayed offline for several hours. Now process on machine A hangs in the process “D” state, meaning it doesn’t accept any KILL signals. Trying to umount hangs the whole terminal, even typing /back […]

Categories
Mastering Development System & Network

nginx redirect from 8080 port to 5000 port

i have dockerized vue.js app. this is my Dockerfile # build FROM node:lts-alpine as build-stage RUN apk update && apk add git WORKDIR /app COPY package*.json ./ RUN npm install COPY . . RUN npm run build # production (production-stage) FROM nginx:stable-alpine as production-stage COPY –from=build-stage /app/dist /usr/share/nginx/html RUN rm /etc/nginx/conf.d/* COPY nginx/api.conf /etc/nginx/conf.d/ EXPOSE […]

Categories
Mastering Development System & Network

What do I do if I find a possible security exposure?

How do I find out who to tell? Never mind. Writing the question here helped me find a different way to ask it, which probably should have been obvious to me but wasn’t. Google “[organization] security exposure reporting” There may a way to contact them privately, for example via private mailing list.

Categories
Mastering Development System & Network

How to check answers from online quiz

I’m trying to create an online quiz app, so I was wondering how I could check answers. The first thing that I could think of is to submit all answers to the server, and that get form server witch ones are correct and which aren’t. But my goal is that I can have real-time quizzes […]

Categories
Mastering Development System & Network

What is the difference between Consumer and Client SSD?

Does anyone know what are the differences between Consumer and Client SSD : https://www.samsung.com/us/computing/memory-storage/solid-state-drives/ssd-970-pro-nvme-m2-1tb-mz-v7p1t0bw/ versus https://www.samsung.com/us/business/products/computing/ssd/client/970-pro-1tb-mz-v7p1t0e/ https://www.samsung.com/us/computing/memory-storage/solid-state-drives/ssd-860-pro-2-5–sata-iii-2tb-mz-76p2t0bw/ versus https://www.samsung.com/us/business/products/computing/ssd/client/860-pro-2tb-mz-76p2t0e/

Categories
Mastering Development System & Network

Use tomcat webapp as the root path for apache/mod-jk virtualhost

I have configured a server where lies several domains, and more than one of them have a ajp13-worker associated to it. The configuration file looks like that: <VirtualHost *:80> ServerAdmin my@email ServerName mydomain ServerAlias www.domain DocumentRoot /home/kleber/www/loja JkMount /app* ajp13_worker … </VirtualHost> when I deploy some webapps like appOne.war and appTwo.war to my tomcat webapps […]