瀏覽代碼

[weewx] Actually upgrading to 4.7.0 now

Colin Powell 3 年之前
父節點
當前提交
065ce2f57c

+ 7 - 0
ansible/roles/searx/files/nginx-location.conf

@@ -0,0 +1,7 @@
+location /searx {
+         proxy_pass http://127.0.0.1:4004;
+         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+         proxy_set_header Host $host;
+         proxy_redirect off;
+}
+

+ 7 - 0
ansible/roles/searx/tasks/main.yml

@@ -47,6 +47,13 @@
     mode: 0700
   notify: Morty restarted
 
+- name: nginx location file installed
+  copy:
+    src: nginx-location.conf
+    dest: /usr/local/etc/nginx/locations/searx.conf
+    mode: 0644
+  notify: nginx restarted
+
 - name: Filtron started
   service: name=filtron state=started
 

+ 1 - 1
ansible/roles/weewx/files/weewx.conf

@@ -23,7 +23,7 @@ log_failure = True
 socket_timeout = 20
 
 # Do not modify this. It is used when installing and updating weewx.
-version = 4.5.1
+version = 4.7.0
 
 # Whether to try indefinitely to load the driver
 loop_on_init = 1

+ 1 - 1
ansible/roles/weewx/files/weewx.rc

@@ -3,7 +3,7 @@
 # Put this script in /usr/local/etc/rc.d then adjust WEEWX_BIN and
 # WEEWX_CFG values in /etc/defaults/weewx
 
-WEEWX_BIN="/usr/local/bin/python3.8 /usr/local/src/weewx/weewx-4.6.2/bin/weewxd"
+WEEWX_BIN="/usr/local/bin/python3.8 /usr/local/src/weewx/weewx-4.7.0/bin/weewxd"
 WEEWX_CFG="/usr/local/etc/weewx.conf"
 WEEWX_PID="/var/run/weewx.pid"