fix login

add logging
add scripts for server
This commit is contained in:
Alex Bezdieniezhnykh
2024-12-04 12:40:56 +02:00
parent 0914c8c39e
commit 6d8ea6c74f
9 changed files with 43 additions and 18 deletions
+4 -4
View File
@@ -12,8 +12,8 @@ chmod 640 .htpasswd
chown root:www-data .htpasswd
# create certs
certbot --nginx -d api.mywebsite.com
certbot --nginx -d docker.mywebsite.com
certbot --nginx -d api.azaion.com
certbot --nginx -d docker.azaion.com
cd /etc/nginx/sites-available
tee -a docker.azaion.com << END
@@ -23,7 +23,6 @@ server {
ssl_certificate /etc/letsencrypt/live/docker.azaion.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/docker.azaion.com/privkey.pem;
client_max_body_size 200M;
location / {
auth_basic "Registry";
@@ -40,7 +39,6 @@ server {
server {
listen 80;
server_name docker.azaion.com;
client_max_body_size 200M;
location / {
auth_basic "Registry";
@@ -60,6 +58,7 @@ tee -a api.azaion.com << END
server {
listen 443 ssl;
server_name api.azaion.com;
client_max_body_size 200M;
ssl_certificate /etc/letsencrypt/live/api.azaion.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/api.azaion.com/privkey.pem;
@@ -77,6 +76,7 @@ server {
server {
listen 80;
server_name api.azaion.com;
client_max_body_size 200M;
# Redirect all HTTP requests to HTTPS
return 301 https://\$host\$request_uri;
+2
View File
@@ -0,0 +1,2 @@
docker rm azaion.api
sh start-container.sh
+5
View File
@@ -0,0 +1,5 @@
docker run \
--env-file .env \
-p 4000:8080 \
-v /root/content:/app/Content \
--name azaion.api docker.azaion.com/api
+6
View File
@@ -0,0 +1,6 @@
docker stop azaion.api
docker rm azaion.api
docker login docker.azaion.com
docker pull docker.azaion.com/api:latest
sh start-container.sh