How to run a Python script? #8

Open
opened 2025-10-20 21:55:28 +02:00 by Benjamin_Loison · 1 comment
Related to [Benjamin_Loison/httpd/issues/7](https://codeberg.org/Benjamin_Loison/httpd/issues/7).
Author
Owner
/etc/nginx/sites-enabled/etesync:
upstream etebase {
    server 127.0.0.1:8001;
}

server {
...
    location / {
        proxy_pass http://etebase;

        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";

        proxy_redirect off;
        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_set_header X-Forwarded-Host $server_name;
    }
...
}
<details> <summary><code>/etc/nginx/sites-enabled/etesync</code>:</summary> ``` upstream etebase { server 127.0.0.1:8001; } server { ... location / { proxy_pass http://etebase; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_redirect off; 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_set_header X-Forwarded-Host $server_name; } ... } ``` </details>
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Benjamin_Loison/nginx#8