Skip to content

Commit

Permalink
correct configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Pablito2020 committed Oct 10, 2023
1 parent 169ea06 commit bd0f6de
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,34 @@ http {
server {
listen 443 ssl http2;
server_name api.pofnet.net;

# SSL/TLS settings
ssl_certificate /etc/nginx/certificate.crt;
ssl_certificate_key /etc/nginx/private.pem;

# Enable TLS 1.3
ssl_protocols TLSv1.3;

# API route
location /api {
rewrite ^/api/(.*) /$1 break;
proxy_set_header Host $http_host;
proxy_pass http://127.0.0.1:8000;
proxy_pass http://refuapp-backend:8000/;
# proxy_set_header Host $host;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_pass http://127.0.0.1:8000;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_set_header Host $http_host;
# proxy_http_version 1.1;
}

# Root route
location / {
alias /var/www/;
index index.html;
}

# Static files
location /static {
alias /static/;
Expand Down

0 comments on commit bd0f6de

Please sign in to comment.