Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
alihardan committed May 30, 2024
1 parent c9a6ffb commit 76aa101
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Deploy

1. apt-get install certbot -y && certbot certonly --standalone --agree-tos --register-unsafely-without-email -d backend.oldpersiangames.org && certbot renew --dry-run
1. apt-get install certbot -y && certbot certonly --standalone --agree-tos --register-unsafely-without-email --key-type rsa -d backend.oldpersiangames.org && certbot renew --dry-run
1. get docker-compose.yml and put in /opt/opgmanager-backend/docker-compose.yml (remove build at app and uncomment image at app)
1. copy .env file kenare docker-compose.yml, set mysql host to "db", and set user pass, add APP_KEY, also:
SANCTUM_STATEFUL_DOMAINS=dash.oldpersiangames.org
Expand Down
2 changes: 1 addition & 1 deletion config/sanctum.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

'stateful' => explode(',', env('SANCTUM_STATEFUL_DOMAINS', sprintf(
'%s%s%s',
'localhost,localhost:9000,localhost:3000,127.0.0.1,127.0.0.1:8000,::1',
'localhost,localhost:9000,localhost:5173,localhost:3000,127.0.0.1,127.0.0.1:8000,::1',
Sanctum::currentApplicationUrlWithPort(),
env('FRONTEND_URL') ? ',' . parse_url(env('FRONTEND_URL'), PHP_URL_HOST) : ''
))),
Expand Down

0 comments on commit 76aa101

Please sign in to comment.