We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e4a9bc commit 932c919Copy full SHA for 932c919
deployment/nginx-notes-config
@@ -0,0 +1,12 @@
1
+server {
2
+ server_name notes.pl-coding.com; # replace with your domain
3
+
4
+ location / {
5
+ proxy_pass http://127.0.0.1:8085; # replace with your port
6
+ proxy_http_version 1.1;
7
+ proxy_set_header Host $host;
8
+ proxy_set_header X-Real-IP $remote_addr;
9
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
10
+ proxy_set_header X-Forwarded-Proto $scheme;
11
+ }
12
+}
deployment/notes.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Spring Boot Notes Application
+After=network.target
+[Service]
+User=admin
+Group=admin
+EnvironmentFile=/etc/default/notes-env
+ExecStart=/usr/bin/java -jar /opt/notes/notes.jar
+Restart=always
+RestartSec=5
13
+[Install]
14
+WantedBy=multi-user.target
0 commit comments