Skip to content

Commit

Permalink
fix: cors test23
Browse files Browse the repository at this point in the history
  • Loading branch information
toychip committed Aug 4, 2024
1 parent a150bd3 commit 5642e81
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 28 deletions.
3 changes: 0 additions & 3 deletions .platform/nginx/conf.d/custom_log_format.conf

This file was deleted.

9 changes: 9 additions & 0 deletions .platform/nginx/conf.d/elasticbeanstalk/00_application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ server {
ssl_certificate /etc/letsencrypt/live/dojo-backend-eb-env.eba-33qhzuax.ap-northeast-2.elasticbeanstalk.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/dojo-backend-eb-env.eba-33qhzuax.ap-northeast-2.elasticbeanstalk.com/privkey.pem;

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

client_header_timeout 60;
client_body_timeout 60;
keepalive_timeout 60;
gzip off;
gzip_comp_level 4;
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;

location / {
proxy_pass http://127.0.0.1:8080;
proxy_http_version 1.1;
Expand Down
25 changes: 0 additions & 25 deletions .platform/nginx/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# .platform/nginx/nginx.conf

user nginx;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
Expand All @@ -14,9 +12,6 @@ http {
types_hash_max_size 2048;
types_hash_bucket_size 128;

# Include the custom log format
include conf.d/custom_log_format.conf;

log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
Expand All @@ -37,24 +32,4 @@ http {
server_name dojo-backend-eb-env.eba-33qhzuax.ap-northeast-2.elasticbeanstalk.com;
return 301 https://$host$request_uri;
}

server {
listen 443 ssl;
server_name dojo-backend-eb-env.eba-33qhzuax.ap-northeast-2.elasticbeanstalk.com;

ssl_certificate /etc/letsencrypt/live/dojo-backend-eb-env.eba-33qhzuax.ap-northeast-2.elasticbeanstalk.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/dojo-backend-eb-env.eba-33qhzuax.ap-northeast-2.elasticbeanstalk.com/privkey.pem;

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

client_header_timeout 60;
client_body_timeout 60;
keepalive_timeout 60;
gzip off;
gzip_comp_level 4;
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;

# Include the Elastic Beanstalk generated locations
include /var/proxy/staging/nginx/conf.d/*.conf;
}
}

0 comments on commit 5642e81

Please sign in to comment.