Skip to content
This repository was archived by the owner on Nov 6, 2025. It is now read-only.

Commit 9a105e7

Browse files
committed
1 parent d343349 commit 9a105e7

File tree

10 files changed

+52
-8
lines changed

10 files changed

+52
-8
lines changed

rootfs/etc/nginx/conf.d/default.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ server {
3232
server_name localhost;
3333
access_log /data/logs/fallback_access.log standard;
3434
error_log /dev/null crit;
35+
include conf.d/include/ssl-ciphers.conf;
3536
ssl_reject_handshake on;
3637

3738
return 444;

rootfs/etc/nginx/conf.d/dev.conf

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
server {
2+
listen 81 default;
3+
listen [::]:81 default;
4+
5+
server_name nginxproxymanager-dev;
6+
root /app/frontend/dist;
7+
access_log /dev/null;
8+
9+
location /api {
10+
return 302 /api/;
11+
}
12+
13+
location /api/ {
14+
add_header X-Served-By $host;
15+
proxy_set_header Host $host;
16+
proxy_set_header X-Forwarded-Scheme $scheme;
17+
proxy_set_header X-Forwarded-Proto $scheme;
18+
proxy_set_header X-Forwarded-For $remote_addr;
19+
proxy_pass http://127.0.0.1:3000/;
20+
21+
proxy_read_timeout 15m;
22+
proxy_send_timeout 15m;
23+
}
24+
25+
location / {
26+
index index.html;
27+
try_files $uri $uri.html $uri/ /index.html;
28+
}
29+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
resolvers.conf

rootfs/etc/nginx/conf.d/include/assets.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
location ~* ^.*\.(css|js|jpe?g|gif|png|webp|woff|eot|ttf|svg|ico|css\.map|js\.map)$ {
1+
location ~* ^.*\.(css|js|jpe?g|gif|png|webp|woff|woff2|eot|ttf|svg|ico|css\.map|js\.map)$ {
22
if_modified_since off;
33

44
# use the public cache
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
set $test "";
12
if ($scheme = "http") {
3+
set $test "H";
4+
}
5+
if ($request_uri = /.well-known/acme-challenge/test-challenge) {
6+
set $test "${test}T";
7+
}
8+
if ($test = H) {
29
return 301 https://$host$request_uri;
310
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
log_format proxy '[$time_local] $upstream_cache_status $upstream_status $status - $request_method $scheme $host "$request_uri" [Client $remote_addr] [Length $body_bytes_sent] [Gzip $gzip_ratio] [Sent-to $server] "$http_user_agent" "$http_referer"';
2+
log_format standard '[$time_local] $status - $request_method $scheme $host "$request_uri" [Client $remote_addr] [Length $body_bytes_sent] [Gzip $gzip_ratio] "$http_user_agent" "$http_referer"';
3+
4+
access_log /data/logs/fallback_access.log proxy;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ssl_session_timeout 5m;
2+
ssl_session_cache shared:SSL_stream:50m;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ssl_session_timeout 5m;
2+
ssl_session_cache shared:SSL:50m;

rootfs/etc/nginx/conf.d/include/ssl-ciphers.conf

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
ssl_session_timeout 5m;
2-
ssl_session_cache shared:SSL:50m;
3-
41
# intermediate configuration. tweak to your needs.
52
ssl_protocols TLSv1.2 TLSv1.3;
63
ssl_ciphers 'ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384';

rootfs/etc/nginx/nginx.conf

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ error_log /data/logs/fallback_error.log warn;
1717
# Includes files with directives to load dynamic modules.
1818
include /etc/nginx/modules/*.conf;
1919

20+
# Custom
21+
include /data/nginx/custom/root_top[.]conf;
22+
2023
events {
2124
include /data/nginx/custom/events[.]conf;
2225
}
@@ -46,10 +49,8 @@ http {
4649
proxy_cache_path /var/lib/nginx/cache/public levels=1:2 keys_zone=public-cache:30m max_size=192m;
4750
proxy_cache_path /var/lib/nginx/cache/private levels=1:2 keys_zone=private-cache:5m max_size=1024m;
4851

49-
log_format proxy '[$time_local] $upstream_cache_status $upstream_status $status - $request_method $scheme $host "$request_uri" [Client $remote_addr] [Length $body_bytes_sent] [Gzip $gzip_ratio] [Sent-to $server] "$http_user_agent" "$http_referer"';
50-
log_format standard '[$time_local] $status - $request_method $scheme $host "$request_uri" [Client $remote_addr] [Length $body_bytes_sent] [Gzip $gzip_ratio] "$http_user_agent" "$http_referer"';
51-
52-
access_log /data/logs/fallback_access.log proxy;
52+
# Log format and fallback log file
53+
include /etc/nginx/conf.d/include/log.conf;
5354

5455
# Dynamically generated resolvers file
5556
include /etc/nginx/conf.d/include/resolvers.conf;

0 commit comments

Comments
 (0)