User Tools

Site Tools


nginx-yetti-addplidasite

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
nginx-yetti-addplidasite [2025/08/31 20:19] – created adminnginx-yetti-addplidasite [2025/09/01 10:12] (current) plida
Line 1: Line 1:
-The Yetti setup involves a private home server and a public virtual one, so the setup is a bit tricky.+====== Adding a new plida.ru site on Yetti ====== 
 + 
 +The Yetti setup involves a private home server and a public virtual one.
  
 ==== Public virtual server (Portal) ==== ==== Public virtual server (Portal) ====
Line 9: Line 11:
 <code> <code>
 server { server {
-       server_name cryptids+        server_name subdomain.plida.ru; 
 + 
 +        location / { 
 +                resolver 10.227.15.1:53 valid=30s; 
 +                set $proxy_host container_name.yetti; 
 +                proxy_pass http://container_ip; 
 +                include proxy_params; 
 +        }
 </code> </code>
 +
 +With certbot https is configured: ''certbot %%--%%nginx'', the correct config file needs to be inputted.
 +
 +''service nginx reload''
 +
 +
 +==== Private home server (Yetti) ====
 +
 +Assuming our path is /var/www/project
 +
 +<code>
 +server {
 +        listen 80;
 +        add_header x-who container_name.yetti;
 +        server_name _;
 +        index index.php index.html;
 +        root /var/www/project/public;
 +        location /m/ { # media
 +                alias /var/www/project/public/images/;
 +        }
 +        location / {
 +          try_files $uri $uri/ =404;
 +        }
 +}
 +</code>
 +
 +''service nginx reload''
 +
 +That should be it.
nginx-yetti-addplidasite.1756671581.txt.gz · Last modified: by admin