Skip to content

Instantly share code, notes, and snippets.

@hashmaparraylist
hashmaparraylist / default.conf
Created November 29, 2021 09:14
Nginx方向代理
server
{
listen 80 default;
server_name _;
index index.html index.htm index.php;
root /data/httpd/;
location ^~ /ms/b/ {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
@hashmaparraylist
hashmaparraylist / deploy_modules.sh
Created February 22, 2023 06:29
获取pom.xml中所有module
#!/bin/bash
read_dom () {
#local IFS=\>
#read -d \< ENTITY CONTENT
local IFS=\>
read -d \< ENTITY CONTENT
local ret=$?
TAG_NAME=${ENTITY%% *}
ATTRIBUTES=${ENTITY#* }