60 lines
1.5 KiB
Plaintext
60 lines
1.5 KiB
Plaintext
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
server_name localhost;
|
|
|
|
location / {
|
|
proxy_buffering on;
|
|
proxy_buffers 16 4k;
|
|
proxy_buffer_size 4k;
|
|
proxy_busy_buffers_size 8k;
|
|
proxy_pass http://portfolio-web:8080;
|
|
}
|
|
|
|
error_page 500 502 503 504 /50x.html;
|
|
location = /50x.html {
|
|
root /usr/share/nginx/html;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
server_name christiangoeschel.com;
|
|
ssl_certificate /etc/ssl/letsencrypt/live/christiangoeschel.com/fullchain.pem;
|
|
ssl_certificate_key /etc/ssl/letsencrypt/live/christiangoeschel.com/privkey.pem;
|
|
|
|
location / {
|
|
proxy_pass http://portfolio-web:8080;
|
|
proxy_buffering on;
|
|
proxy_buffers 16 4k;
|
|
proxy_buffer_size 4k;
|
|
proxy_busy_buffers_size 8k;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
}
|
|
}
|
|
|
|
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
|
|
#
|
|
#location ~ \.php$ {
|
|
# proxy_pass http://127.0.0.1;
|
|
#}
|
|
|
|
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
|
|
#
|
|
#location ~ \.php$ {
|
|
# root html;
|
|
# fastcgi_pass 127.0.0.1:9000;
|
|
# fastcgi_index index.php;
|
|
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
|
|
# include fastcgi_params;
|
|
#}
|
|
|
|
# deny access to .htaccess files, if Apache's document root
|
|
# concurs with nginx's one
|
|
#
|
|
#location ~ /\.ht {
|
|
# deny all;
|
|
#}
|
|
|