fix
All checks were successful
Deploy Dev / Build (pull_request) Successful in 12s
Deploy Dev / Push (pull_request) Successful in 11s
Deploy Dev / prepare (pull_request) Successful in 3s
Deploy Dev / Deploy dev (pull_request) Successful in 16s

This commit is contained in:
Egor Matveev 2025-06-02 03:01:52 +03:00
parent b3e1195975
commit 81afaa3f16
2 changed files with 5 additions and 5 deletions

View File

@ -17,7 +17,7 @@ hosts = list(set(hosts + ['platform.develop.sprinthub.ru']))
config = '' config = ''
for host in hosts: for host in hosts:
config += ''' config += '''
server \{ server {{
listen 443 ssl http2; listen 443 ssl http2;
listen [::]:443 ssl http2; listen [::]:443 ssl http2;
server_name {host}; server_name {host};
@ -31,10 +31,10 @@ for host in hosts:
add_header Referrer-Policy "no-refferer-when-downgrade" always; add_header Referrer-Policy "no-refferer-when-downgrade" always;
add_header Content-Security-Policy "default-src * data: 'unsafe-eval' 'unsafe-inline'" always; add_header Content-Security-Policy "default-src * data: 'unsafe-eval' 'unsafe-inline'" always;
location / \{ location / {{
proxy_pass http://{pre_domain}-nginx:1238$request_uri; proxy_pass http://{pre_domain}-nginx:1238$request_uri;
\} }}
\}\n\n }}\n\n
'''.format(host=host, pre_domain=host.split('.')[0]) '''.format(host=host, pre_domain=host.split('.')[0])
fullchain = minio_client.get_object("certupdater", f'certificates/{host}/fullchain.pem') fullchain = minio_client.get_object("certupdater", f'certificates/{host}/fullchain.pem')
privkey = minio_client.get_object("certupdater", f'certificates/{host}/privkey.pem') privkey = minio_client.get_object("certupdater", f'certificates/{host}/privkey.pem')

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/bash
python3 prepare.py python3 prepare.py
/docker-entrypoint.sh nginx -g daemon; /docker-entrypoint.sh nginx -g daemon off;