Skip to content

Commit

Permalink
Merge pull request #604 from GermanZero-de/deploy-to-testing
Browse files Browse the repository at this point in the history
Deploy to production
  • Loading branch information
m-vuk authored Sep 19, 2024
2 parents 9b6cdae + 7bd891b commit b2e9114
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
14 changes: 13 additions & 1 deletion config/nginx/conf.d/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,24 @@ server {
add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data:;";

location /admin/ {
# pass requests for dynamic content to gunicorn
proxy_pass http://djangoapp:8000;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

location /invitations/ {
proxy_pass http://djangoapp:8000;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

location /accounts/ {
proxy_pass http://djangoapp:8000;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}


location / {
proxy_pass http://frontend:3000;
proxy_set_header Host $host;
Expand Down
4 changes: 0 additions & 4 deletions frontend/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: "standalone",
i18n: {
locales: ['de', 'en'],
defaultLocale: 'de',
},
images: {
unoptimized: false,
},
Expand Down

0 comments on commit b2e9114

Please sign in to comment.