Skip to content

Commit

Permalink
Update nginx.conf and add some bash scripts
Browse files Browse the repository at this point in the history
skip-checks:true
  • Loading branch information
rsh-12 committed May 18, 2024
1 parent 6ba0f14 commit e185c2a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
13 changes: 7 additions & 6 deletions config/nginx/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
server {
listen 80;
listen 80;
listen [::]:80;
return 301 https://$host$request_uri;
}

server {
listen 443 ssl;
listen [::]:443 ssl;
server_name backend;
Expand All @@ -15,7 +12,7 @@ server {
ssl_session_timeout 5m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
client_max_body_size 500M;
client_max_body_size 10M;

#access_log /var/log/nginx/host.access.log main;

Expand All @@ -33,12 +30,16 @@ server {
}

#error_page 404 /404.html;
location = /favicon.ico {
return 204;
access_log off;
log_not_found off;
}

# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {

root /usr/share/nginx/html;
}

Expand Down
3 changes: 3 additions & 0 deletions config/scripts/run_backend.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

docker compose up -d postgres backend nginx
3 changes: 3 additions & 0 deletions config/scripts/run_db.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

docker compose up -d postgres

0 comments on commit e185c2a

Please sign in to comment.