mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-15 00:46:22 +00:00
29 lines
691 B
Plaintext
29 lines
691 B
Plaintext
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
server_name lolisafe.tld;
|
|
|
|
# security
|
|
include nginxconfig.io/security.conf;
|
|
|
|
# logging
|
|
access_log /var/log/nginx/lolisafe.tld.access.log;
|
|
error_log /var/log/nginx/lolisafe.tld.error.log warn;
|
|
|
|
# uploaded files
|
|
location / {
|
|
add_header Access-Control-Allow-Origin *;
|
|
root /usr/lolisafe/uploads;
|
|
try_files $uri @proxy;
|
|
}
|
|
|
|
# reverse proxy
|
|
location @proxy {
|
|
proxy_pass http://lolisafe:9999;
|
|
include nginxconfig.io/proxy.conf;
|
|
}
|
|
|
|
# additional config
|
|
include nginxconfig.io/general.conf;
|
|
}
|