Smersh icon indicating copy to clipboard operation
Smersh copied to clipboard

Invalid template: "^https?://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?$" when install with Docker

Open changtraisitinh opened this issue 2 years ago • 3 comments

I has a issue when run project with docker-compose. Please feedback for me, thanks.

└─$ sudo make initialize cp api/.env-dist api/.env make setup-hosts create-network up jwt composer-install cache make[1]: Entering directory '/home/kali/Tools/Smersh' Setup hosts... docker network create smersh || true Error response from daemon: network with name smersh already exists docker-compose up -d client api [+] Running 7/7 ⠿ Container smersh-traefik-1 Running 0.0s ⠿ Container smersh-db-1 Running 0.0s ⠿ Container smersh-db_codimd-1 Running 0.0s ⠿ Container smersh-client-1 Running 0.0s ⠿ Container smersh-codimd-1 Running 0.0s ⠿ Container smersh-php-1 Started 0.7s ⠿ Container smersh-api-1 Running 0.0s cd api && sh ./generateJWT.sh Invalid template: "^https?://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?$" make[1]: *** [Makefile:41: jwt] Error 1 make[1]: Leaving directory '/home/kali/Tools/Smersh' make: *** [Makefile:35: install] Error 2

changtraisitinh avatar Sep 24 '22 04:09 changtraisitinh

Hello @changtraisitinh are you using the latest version ?

darkweak avatar Sep 24 '22 18:09 darkweak

Hi @darkweak , yes, i use latest version in kali 2021

changtraisitinh avatar Sep 25 '22 02:09 changtraisitinh

Hey @changtraisitinh sadly I'm not able to reproduce.
This line cause the issue https://github.com/CMEPW/Smersh/blob/master/api/.env-dist#L36 but we override that environment variable in the https://github.com/CMEPW/Smersh/blob/master/docker-compose.yml#L42. Can you try to replace the api/.env file and replace the ^https?://(localhost|127\.0\.0\.1)(:[0-9]+)?$ with ^.+$ and tell me if that works?

darkweak avatar Sep 27 '22 09:09 darkweak