Latest Server related questions

Score: 0
Raymond avatar
Docker-compose erratic parameters reading
co flag

I'm trying to build a container stack for an application and using the .env file so as to pass the various parameters to be used during the build process.

Stack Config:

    Docker version 20.10.14, build a224086d
    Docker Compose version v2.5.1
    Docker Desktop version 4.8.2 (79419)
.
├── docker
│   ├── php
│   ├── caddy
│── Dockerfile
│── Docker-compose.yml
│┠...
Score: 0
Typewar avatar
Performance, Security and Scalability of nginx proxy vs ssh tunnel
in flag

I'm wondering about the difference in performance, security and scalability for nginx and ssh tunnel for a web application.

For my case, I have a VPS set up, whos only job is to forward the traffic to my home router. This traffic travels between the 2 servers unencrypted (HTTP) and I think it would be easier to use a SSH tunnel for this case instead of having to set up HTTPS twice.

I could not find  ...

Score: 0
Zaffry avatar
Cannot Ping Primary interface after configuring second INT on AWS
in flag

I have an Amazon EC2 Instance running Ubuntu server 16.04

I want the EC2 to have two network interfaces. After configuring the secondary interface. I cannot ping my primary interface from my other instances. This is my configuration of the /etc/network/interfaces.d/51-secondary.cfg . I have enable to allow all traffic on the ec2 as well. My interfaces are ens5 the primary and ens6 the secondary.  ...

Score: 0
jotyhista avatar
Docker + Symfony + Nginx + PHP 8.1 bad gateway configure php for Nginx
cn flag

I am trying to access my symfony application via a docker compose setup

I have issues with nginx default.conf When trying to access the app I am getting bad gateway

docker logs show an error:

no resolver defined to resolve app, client: 193.32.126.216

so I tried putting 127.0.0.1:9000 instead of app:9000 and I get a new error:

connect() failed (111: Connection refused) while connecting to upstream

Score: -2
allahZu avatar
Can't figure out what's wrong
co flag
<VirtualHost 221.0.256.1:8080>
    ServerName site.ru www.site.ru
    ServerAlias info.site.ru
    Listen 8080
    LoadModule status_module "modules/mod_status.so"
 
    ErrorLog "c:/users\public/logs/error.txt"
    CustomLog "c:/users/public/logs/log.log" access
    LogFormat "%h" access
 
    ServerRoot "c:/users/public/htdocs"
    ServerAdmin [email protected]
    AllowOverride All
    Alias /icons/  ...
Score: 0
Rodrigo avatar
Disable disconnection logging on PostgresSQL
jp flag

I am seeing a LOT of Postgres disconnection events on the logs, is there some way to disable this specific log?

May 30 10:13:08 my-app app/postgres.456514 [SILVER] [11-1]  sql_error_code = 00000 time_ms = "2022-05-30 10:13:07.600 UTC" pid="1235859" proc_start_time="2022-05-30 10:13:07 UTC" session_id="629398b4.12db93" vtid="" tid="0" log_line="3" database="XXX" connection_source="34.220.26.230(5739 ...
Score: 0
Pathfinder avatar
Issues during Synology NAS LUN backup
us flag

I'm having an issue with my Synology DS210j, DSM 4.2-3211 version.

NAS LUN backup fail issues began occurring for some time, with different backup tasks failing. Issue reported in logs for this job is: "The lun is being backed up by another user" There is no second user or device which is accessing this target LUN. This is special iSCSI connection to this Synology device only.

WD My Passport 25E1 at ...

Score: 0
ofirule avatar
OpenVPN adding static ip for client dynamically based on a script
cn flag

In my VPN logic all of my client certificates have the folowing CN template:

number.mycompany.com where number is between 2-65536

For each CN I add a config file which looks like so:

$ cat 65501.mycompany.com
ifconfig-push 10.22.255.221 255.255.0.0

So basically based on the CN number area I configure the static ip in the relevant file, conversion from number to ip logic:

$ python3 -c "print('10.22.{}.{ ...
Score: 0
Erasure code overhead for heterogeneous hardware
cn flag

I need to setup a Ceph cluster on a set of 10 machines having different disk sizes and numbers. The numbers ranges from 16x500GB to 8x4TB, with various intermediate values, the most common being 8x2TB. My idea is to go for a k=6 m=2 erasure code with host failure domain, but I don't know how to get an estimate of the expected available disk space. Most (if not all) of the examples I found about how to c ...

Score: 0
Cache gems for every build on GitLab Runner
us flag

I have a GitLab Runner installed on a Ubuntu server. It uses 'docker' executor.

I want every CI job which executes on this runner to use the same Ruby gems cache, to prevent downloading from rubygems.org the same version several times in a row.

There seems to be two solutions:

  1. Use cache: instruction in .gitlab-ci.yml. I don't like that because I would have per-project cache instead of single cache ...

Score: 0
Shaamaan avatar
Securing Windows Server NPS/SSTP
ru flag

Looking at our NPS logs I see we're getting hammered; some online actor is doing a brute force on various login names and passwords.

In general this isn't an issue... yet. It doesn't appear that a breach has occurred (especially since it's not a single login being attempted multiple times but rather random login names).

However, I've identified some key issues which I'm not sure how to resolve just  ...

Score: 0
samo azaid avatar
How can stop sftp download and upload a specific file in the root user and cat command
in flag

how to stop sftp root user transfir and donload for specific file

linux centos 7

I have a text file located in the root folder But . I want to give someone a root user password and I need to protect my file. I want to make sure that this person cannot download this file to his device via sftp

and stop cat this file

Score: 0
Category of storage subsystems (protocol , command, adapter, form factor, connector...)
us flag

I'm overwhelmed between all the abbreviations that is use to connect a storage device to the host. I figured out the below is OK but I'm not sure. I would appreciate if someone could help me to organize my understanding to check if the following text is organized correctly or not:

disks:

-- hdd(any type,..) , ssd (any type,..)

form factor (general):

-- 3.5 inch , 2.5 inch, m.2 , aic (HHHL,FHHL) , msata

The Stunning Power of Questions

Much of an executive’s workday is spent asking others for information—requesting status updates from a team leader, for example, or questioning a counterpart in a tense negotiation. Yet unlike professionals such as litigators, journalists, and doctors, who are taught how to ask questions as an essential part of their training, few executives think of questioning as a skill that can be honed—or consider how their own answers to questions could make conversations more productive.

That’s a missed opportunity. Questioning is a uniquely powerful tool for unlocking value in organizations: It spurs learning and the exchange of ideas, it fuels innovation and performance improvement, it builds rapport and trust among team members. And it can mitigate business risk by uncovering unforeseen pitfalls and hazards.

For some people, questioning comes easily. Their natural inquisitiveness, emotional intelligence, and ability to read people put the ideal question on the tip of their tongue. But most of us don’t ask enough questions, nor do we pose our inquiries in an optimal way.

The good news is that by asking questions, we naturally improve our emotional intelligence, which in turn makes us better questioners—a virtuous cycle. In this article, we draw on insights from behavioral science research to explore how the way we frame questions and choose to answer our counterparts can influence the outcome of conversations. We offer guidance for choosing the best type, tone, sequence, and framing of questions and for deciding what and how much information to share to reap the most benefit from our interactions, not just for ourselves but for our organizations.