diff --git a/config/urls.py b/config/urls.py index b693be9..44a1423 100644 --- a/config/urls.py +++ b/config/urls.py @@ -22,7 +22,7 @@ urlpatterns = [ path('admin/', admin.site.urls), path('auth/', include('knox.urls')), path('api/', include("rog.urls")), -]+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) +] admin.site.site_header = "ROGANING" admin.site.site_title = "Roganing Admin Portal" diff --git a/custom-postgresql.conf b/custom-postgresql.conf index 43c3aa6..b2296de 100644 --- a/custom-postgresql.conf +++ b/custom-postgresql.conf @@ -61,7 +61,7 @@ external_pid_file = '/var/run/postgresql/12-main.pid' # write an extra PID fil # defaults to 'localhost'; use '*' for all # (change requires restart) port = 5432 # (change requires restart) -max_connections = 1200 # (change requires restart) +max_connections = 100 # (change requires restart) #superuser_reserved_connections = 3 # (change requires restart) unix_socket_directories = '/var/run/postgresql' # comma-separated list of directories # (change requires restart) @@ -118,7 +118,7 @@ ssl_key_file = '/etc/ssl/private/ssl-cert-snakeoil.key' # - Memory - -shared_buffers = 512MB # min 128kB +shared_buffers = 128MB # min 128kB # (change requires restart) #huge_pages = try # on, off, or try # (change requires restart) diff --git a/docker-compose-prod.yaml b/docker-compose-prod.yaml index fdf7398..e6d81b1 100644 --- a/docker-compose-prod.yaml +++ b/docker-compose-prod.yaml @@ -25,6 +25,7 @@ services: volumes: - .:/app - static_volume:/app/static + - media_volume:/app/media env_file: - .env restart: "on-failure" @@ -38,6 +39,7 @@ services: volumes: - ./nginx.conf:/etc/nginx/nginx.conf - static_volume:/app/static + - media_volume:/app/media ports: - 8100:80 depends_on: @@ -52,3 +54,4 @@ networks: volumes: postgres_data: static_volume: + media_volume: