infrastructure

How to set up IIS request mirroring to staging environment?

ε祈祈猫儿з 提交于 2021-02-10 09:39:01
问题 I would like to have all HTTP requests made to my production environment be also automatically made against my testing environment. E.g. if anything makes a request to http://production.site.example.com/api/users/12345 then I want the same request to also be made against http://staging.site.example.com/api/users/12345 by some internal entity that sees the first request. Is there an easy way to set this up in IIS without having to create a custom module or similar? If not, what is the best

How to set up IIS request mirroring to staging environment?

别来无恙 提交于 2021-02-10 09:38:05
问题 I would like to have all HTTP requests made to my production environment be also automatically made against my testing environment. E.g. if anything makes a request to http://production.site.example.com/api/users/12345 then I want the same request to also be made against http://staging.site.example.com/api/users/12345 by some internal entity that sees the first request. Is there an easy way to set this up in IIS without having to create a custom module or similar? If not, what is the best

How do I access a private Docker registry with a self signed certificate using Kubernetes?

萝らか妹 提交于 2020-12-26 06:51:33
问题 Currently, running a private Docker registry (Artifactory) on an internal network that uses a self signed certificate for authentication. When Kubernetes starts up a new node, it is unable to auth with the private Docker registry because this new node does not have the self signed certificate. Any help would be much appreciated. Thanks! 回答1: You basically have to tell the Docker daemon to trust your self-signed certificate by telling it to trust the Certificate Authority (CA) that you used to

Copy local file if exists, using ansible

老子叫甜甜 提交于 2020-01-01 03:55:06
问题 I'm working in a project, and we use ansible to create a deploy a cluster of servers. One of the tasks that I've to implement, is to copy a local file to the remote host, only if that file exists locally. Now I'm trying to solve this problem using this - hosts: 127.0.0.1 connection: local tasks: - name: copy local filetocopy.zip to remote if exists - shell: if [[ -f "../filetocopy.zip" ]]; then /bin/true; else /bin/false; fi; register: result - copy: src=../filetocopy.zip dest=/tmp/filetocopy

What are the questions that needs to asked before choosing a CMS? [closed]

帅比萌擦擦* 提交于 2019-12-12 02:48:28
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I want to choose a CMS that will be part of my infrastructure for my company websites. What do you think are the questions I need to ask before I really choose one? Choosing a CMS is almost like choosing a framework. Thanks 回答1: Your two starting questions should be about people: Who will be building and

Forward specific urls on same domain to different servers

拜拜、爱过 提交于 2019-12-11 07:12:03
问题 During a rollout of a large site (IIS, .NET, EPiServer) with multiple markets we want to forward markets to the new server when the market has been added to the new web platform, but we still want to use the same domain. www.customer.com/marketA -> old server, ip 1.1.1.1 www.customer.com/marketB -> old server, ip 1.1.1.1 www.customer.com/marketC -> new server, ip 2.2.2.2 What is best practice for this? Should we add a load balancer in front of the servers that based on the url sends the

What are the minimum security precautions to put in place for a startup?

泄露秘密 提交于 2019-12-06 06:33:16
问题 I'm working with a start-up, mostly doing system administration and I've come across a some security issues that I'm not really comfortable with. I want to judge whether my expectations are accurate, so I'm looking for some insight into what others have done in this situation, and what risks/problems came up. In particular, how critical are measures like placing admin tools behind a vpn, regular security updates (OS and tools), etc. Keep in mind that as this is a start-up, the main goal is to

Ideal terraform workspace project structure

南笙酒味 提交于 2019-12-06 01:06:03
问题 I'd like to setup Terraform to manage dev/stage/prod environments. The infrastructure is the same in all environments, but there are differences in the variables in every environment. What does an ideal Terraform project structure look like now that workspaces have been introduced in Terraform 0.10? How do I reference the workspace when naming/tagging infrastructure? 回答1: I wouldn't recommend using workspaces (previously 'environments') for static environments because they add a fair bit of

Benefits and Hindrances of Regular Server Reboots [closed]

匆匆过客 提交于 2019-12-05 23:41:25
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . In the ears of working in multiple teams, I've met multiple infrastructure managers that instituted a policy of weekly server reboots. As a developer, I was always against the policy - it seems that this is a hack to work around software bugs and hardware instabilities, instead of correcting them. What are the

Benefits and Hindrances of Regular Server Reboots [closed]

不想你离开。 提交于 2019-12-04 05:09:14
In the ears of working in multiple teams, I've met multiple infrastructure managers that instituted a policy of weekly server reboots. As a developer, I was always against the policy - it seems that this is a hack to work around software bugs and hardware instabilities, instead of correcting them. What are the people's opinions, positive and negative points regarding the policy? If you reboot your servers occasionally, you can be sure they will come back up. Though weekly sounds like a serious overkill, I have seen this problem on Linux machines with long uptimes. Someone didn't bother to set