all
This commit is contained in:
43
Systeme/Nginx/nginx/conf.d/nginx.conf
Normal file
43
Systeme/Nginx/nginx/conf.d/nginx.conf
Normal file
@ -0,0 +1,43 @@
|
||||
### AAA
|
||||
user nginx;
|
||||
worker_processes 1;
|
||||
|
||||
error_log /var/log/nginx/error.log warn;
|
||||
pid /var/run/nginx.pid;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
##
|
||||
# Basic Settings
|
||||
##
|
||||
sendfile on;
|
||||
tcp_nopush on;
|
||||
types_hash_max_size 2048;
|
||||
server_tokens off;
|
||||
gzip on;
|
||||
|
||||
keepalive_timeout 65;
|
||||
|
||||
include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||
'$status $body_bytes_sent "$http_referer" '
|
||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
||||
|
||||
access_log /var/log/nginx/access.log main;
|
||||
error_log /var/log/nginx/error.log;
|
||||
|
||||
##
|
||||
# SSL Settings
|
||||
##
|
||||
|
||||
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
|
||||
ssl_prefer_server_ciphers on;
|
||||
|
||||
include /etc/nginx/templates/*.conf;
|
||||
|
||||
}
|
0
Systeme/Nginx/nginx/ssl/readme.md
Normal file
0
Systeme/Nginx/nginx/ssl/readme.md
Normal file
41
Systeme/Nginx/nginx/templates/guacamole.conf
Normal file
41
Systeme/Nginx/nginx/templates/guacamole.conf
Normal file
@ -0,0 +1,41 @@
|
||||
### BBB
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
server_name localhost;
|
||||
|
||||
ssl_certificate /etc/nginx/ssl/guacamole_ssl.cert;
|
||||
ssl_certificate_key /etc/nginx/ssl/guacamole_ssl.key;
|
||||
|
||||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
ssl_prefer_server_ciphers on;
|
||||
ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
|
||||
ssl_ecdh_curve secp384r1;
|
||||
ssl_session_cache shared:SSL:10m;
|
||||
ssl_session_tickets off;
|
||||
ssl_stapling off;
|
||||
ssl_stapling_verify off;
|
||||
|
||||
location / {
|
||||
proxy_pass http://guacamole:8080/guacamole/;
|
||||
proxy_buffering off;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $http_connection;
|
||||
proxy_cookie_path /guacamole/ /;
|
||||
access_log off;
|
||||
# allow large uploads (default=1m)
|
||||
# 4096m = 4GByte
|
||||
client_max_body_size 4096m;
|
||||
}
|
||||
|
||||
#error_page 404 /404.html;
|
||||
|
||||
# redirect server error pages to the static page /50x.html
|
||||
#
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
|
||||
}
|
63
Systeme/Nginx/nginx/templates/semaphore.conf
Normal file
63
Systeme/Nginx/nginx/templates/semaphore.conf
Normal file
@ -0,0 +1,63 @@
|
||||
### BBB
|
||||
upstream semaphore {
|
||||
server semaphore-app:3000;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
server_name semaphore.tips-of-mine.local;
|
||||
server_tokens off;
|
||||
|
||||
if ($host = semaphore.example.com) {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
return 404;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
|
||||
server_name semaphore.tips-of-mine.local;
|
||||
client_max_body_size 0;
|
||||
chunked_transfer_encoding on;
|
||||
server_tokens off;
|
||||
|
||||
ssl_certificate /etc/nginx/ssl/semaphore_ssl.cert;
|
||||
ssl_certificate_key /etc/nginx/ssl/semaphore_ssl.key;
|
||||
|
||||
location / {
|
||||
proxy_pass http://semaphore/;
|
||||
|
||||
proxy_set_header Host $http_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-Proto $scheme;
|
||||
|
||||
proxy_connect_timeout 30;
|
||||
proxy_send_timeout 30;
|
||||
|
||||
proxy_buffering off;
|
||||
proxy_request_buffering off;
|
||||
}
|
||||
|
||||
location /api/ws {
|
||||
proxy_pass http://semaphore/api/ws;
|
||||
|
||||
proxy_http_version 1.1;
|
||||
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_set_header Origin "";
|
||||
}
|
||||
|
||||
error_page 404 /404.html;
|
||||
|
||||
# redirect server error pages to the static page /50x.html
|
||||
#
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user