add nginx.conf
This commit is contained in:
parent
bf94c9f833
commit
93178519df
29
nginx-proxy/nginx.conf
Normal file
29
nginx-proxy/nginx.conf
Normal file
@ -0,0 +1,29 @@
|
||||
# HTTP
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
|
||||
server_name localhost;
|
||||
|
||||
client_max_body_size 64M;
|
||||
|
||||
# Redirection HTTP -> HTTPS
|
||||
#return 301 https://$host$request_uri;
|
||||
|
||||
location / {
|
||||
root /var/www/html/;
|
||||
index index.html;
|
||||
# proxy_buffering off;
|
||||
# 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;
|
||||
# proxy_set_header X-Forwarded-Proto $scheme;
|
||||
# proxy_pass http://127.0.0.1:6060;
|
||||
}
|
||||
# Nécessaire pour les redirections internes à Hugo
|
||||
location /feed {
|
||||
return 302 https://example.com/index.xml;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user