Expose AdminJS on nudentic.ir: nginx only proxied /api, so /admin never reached Nest.
This commit is contained in:
@@ -191,14 +191,20 @@ jobs:
|
||||
$infra = '${{ vars.PROD_INFRA_DIR }}'.Trim()
|
||||
if ([string]::IsNullOrWhiteSpace($infra)) { $infra = '/opt/dyolink/infrastructure' }
|
||||
$ssh = @('-i', $env:PROD_SSH_KEY_PATH, '-o', 'StrictHostKeyChecking=accept-new')
|
||||
ssh.exe @ssh -p $port "${user}@${hostName}" "mkdir -p $infra/scripts"
|
||||
ssh.exe @ssh -p $port "${user}@${hostName}" "mkdir -p $infra/scripts $infra/nginx"
|
||||
scp.exe @ssh -P $port `
|
||||
infrastructure/docker-compose.prod.yml `
|
||||
"${user}@${hostName}:${infra}/docker-compose.prod.yml"
|
||||
scp.exe @ssh -P $port `
|
||||
infrastructure/scripts/prod-remote-deploy.sh `
|
||||
"${user}@${hostName}:${infra}/scripts/prod-remote-deploy.sh"
|
||||
ssh.exe @ssh -p $port "${user}@${hostName}" "chmod +x $infra/scripts/prod-remote-deploy.sh"
|
||||
scp.exe @ssh -P $port `
|
||||
infrastructure/scripts/render-nginx-ssl.sh `
|
||||
"${user}@${hostName}:${infra}/scripts/render-nginx-ssl.sh"
|
||||
scp.exe @ssh -P $port `
|
||||
infrastructure/nginx/nginx.ssl.conf.template `
|
||||
"${user}@${hostName}:${infra}/nginx/nginx.ssl.conf.template"
|
||||
ssh.exe @ssh -p $port "${user}@${hostName}" "chmod +x $infra/scripts/prod-remote-deploy.sh $infra/scripts/render-nginx-ssl.sh"
|
||||
|
||||
- name: Login on Linux and deploy tag
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user