Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
changtraisitinh opened this issue Sep 24, 2022 · 3 comments

Comments

@changtraisitinh
Copy link

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

@darkweak
Copy link
Contributor

Hello @changtraisitinh are you using the latest version ?

@changtraisitinh
Copy link
Author

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

@darkweak
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants